Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
AutoSize Command
Try fully qualifying the textbox.
frmName.textboxname.autosize=true -- http://HelpExcel.com 1-888-INGENIO 1-888-464-3646 x0197758 "CWillis" wrote: 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. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
AutoSize Command
Yep, it works now. (That won't last long.) Thank you!
"galimi" wrote: Try fully qualifying the textbox. frmName.textboxname.autosize=true -- http://HelpExcel.com 1-888-INGENIO 1-888-464-3646 x0197758 "CWillis" wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Adding a Dos command in EXCEL | Excel Discussion (Misc queries) | |||
Problem with MID (any text) Command | Excel Worksheet Functions | |||
Extract Command in Excel 1 | Excel Discussion (Misc queries) | |||
Help requested for an Excel Toolbar command | Excel Discussion (Misc queries) | |||
command button in excel will move when print. | Excel Discussion (Misc queries) |