LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
CWillis
 
Posts: n/a
Default AutoSize Command

I am trying to auto size a text box using a macro. The text box was created
from the control toolbar if that makes a difference. Microsoft help says the
command is: object.AutoSize = True

They give the example of: TextBox1.AutoSize = True

Here is the portion of my code that I wrote that is currently giving me the
problem:

Selection.Name = "SummScrollingTextBox"
Selection.AutoSize = True

Excel gives the following error:

"Object doesn't support this property or method"

Any ideas? Thanks.

 
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
Adding a Dos command in EXCEL Gareth - Network analyst. Excel Discussion (Misc queries) 10 June 23rd 06 12:56 PM
Problem with MID (any text) Command Scott Excel Worksheet Functions 2 May 2nd 06 09:45 PM
Extract Command in Excel 1 Bethetsu Excel Discussion (Misc queries) 1 May 12th 05 02:19 PM
Help requested for an Excel Toolbar command Deanl5 Excel Discussion (Misc queries) 2 January 17th 05 01:01 AM
command button in excel will move when print. [email protected] Excel Discussion (Misc queries) 1 December 29th 04 03:53 PM


All times are GMT +1. The time now is 02:22 AM.

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"