Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA Textbox Question

Status
Not open for further replies.

markronz

IS-IT--Management
Mar 20, 2007
93
US
Hello everyone, I know this should be simple, but for the life of me I cannot figure it out. All I am trying to do is copy the text from one text box into another. This is my line of code which doesnt work...

Sheets("Type1").Shapes("TextBox2").Characters.Text = Sheets("Type1").Shapes("TextBox1").Characters.Text

What am I doing wrong?
 



Hi,

One way...
[tt]
Sheets("Type1").Shapes("TextBox2").OLEFormat.Object.Object.Text = Sheets("Type1").Shapes("TextBox1").OLEFormat.Object.Object.Text
[/tt]
Also check out how to use this tool to figure out what properties might work for an object.

How to use the Watch Window as a Power Programming Tool faq707-4594



Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top