LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Editing Text Boxes

I have created a text box named "TextBox_One" on sheet "Sheet_One" using the
following:

Sheets("Sheet_One").Shapes.AddTextbox(msoTextOrien tationHorizontal, 100,
100, 100, 400).Name = "TextBox_One"

I would like to edit the text box by adding text, changing borders etc but I
can't get the code to work. I have used the macro recorder to generate the
code but I do not want to select the object to perform the edits and I can't
seem to adapt the code to work.

For example, to add text I tried the following

Sheets("Sheet_One").Shapes("TextBox_One").Characte rs.Text = "Sample Text"

but got the error message "Object doesn't support this property or method"

Any help appreciated, Kaval
 
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
User Form Text Boxes - Copy format of text boxes NDBC Excel Discussion (Misc queries) 3 July 2nd 09 02:02 AM
XL 2003:Revision Number and Total Editing Time Boxes Are Empty thechandra Excel Discussion (Misc queries) 2 February 21st 08 12:01 PM
Protecting Check Boxes to prevent editing Lindey Excel Discussion (Misc queries) 1 January 31st 08 10:17 PM
Editing color/msoGradiant of shapes, option button and text boxes MD Excel Programming 1 April 23rd 06 06:06 PM
editing custom dialog boxes Shadowrift Excel Worksheet Functions 5 August 19th 05 07:48 PM


All times are GMT +1. The time now is 06:56 PM.

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

About Us

"It's about Microsoft Excel"