Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
TextBox Accessing Contents
How do I access the contents of a Text box (that is a drawing object shape on
a worksheet). For example I wish to manipulate the text a user has typed into the box, and edit/change the contents of the box. I cannot find a property such a Text or Value, that I use for UserForm controls. Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
TextBox Accessing Contents
Hi,
This will replace current contents with "My Text". You will need to adjust how you reference the control. The examples use name and index. Activesheet.shapes(1).textframe.characters.text="M y Text" or Activesheet.shapes("Text Box 1").textframe.characters.text="My Text" Cheers Andy -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info "Nigel RS" wrote in message ... How do I access the contents of a Text box (that is a drawing object shape on a worksheet). For example I wish to manipulate the text a user has typed into the box, and edit/change the contents of the box. I cannot find a property such a Text or Value, that I use for UserForm controls. Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
TextBox Accessing Contents
Hi Andy
Thanks. It is the TextFrame property I was not aware of. Cheers "Andy Pope" wrote: Hi, This will replace current contents with "My Text". You will need to adjust how you reference the control. The examples use name and index. Activesheet.shapes(1).textframe.characters.text="M y Text" or Activesheet.shapes("Text Box 1").textframe.characters.text="My Text" Cheers Andy -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info "Nigel RS" wrote in message ... How do I access the contents of a Text box (that is a drawing object shape on a worksheet). For example I wish to manipulate the text a user has typed into the box, and edit/change the contents of the box. I cannot find a property such a Text or Value, that I use for UserForm controls. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
ActiveCell changes contents of TextBox | Excel Programming | |||
Accessing sheets based on cell contents | Excel Worksheet Functions | |||
Contents of a TextBox to HTML | Excel Programming | |||
Copy textbox contents | Excel Programming | |||
Accessing a textbox on a sheet.... | Excel Programming |