Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveCell changes contents of TextBox [email protected] Excel Programming 4 September 1st 06 06:25 PM
Accessing sheets based on cell contents Mike Excel Worksheet Functions 3 August 25th 06 08:31 AM
Contents of a TextBox to HTML [email protected] Excel Programming 0 January 27th 05 06:40 PM
Copy textbox contents Stuart[_5_] Excel Programming 2 August 15th 04 06:57 PM
Accessing a textbox on a sheet.... Cyril[_2_] Excel Programming 1 August 11th 03 06:37 PM


All times are GMT +1. The time now is 10:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"