DerbyDesign
New Member
- Joined
- Jun 29, 2009
- Messages
- 4
I created CommandButton1 using Control Toolbox and I set its property to Enabled = True. Is there a (simple) way to swap between Enable/Disable from macro?
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
> </o
>
The line
<o
> </o
>
ActiveSheet.Shapes("CommandButton1").Enabled = False
<o
> </o
>
generates an error (Object doesn't support this property or method) contrary to
<o
> </o
>
ActiveSheet.Shapes("CommandButton1").Visible= False
<o
> </o
>
that works perfectly.
Which CommandButton properties can and which cannot be (simply) altered from within macro? I was unable to find anything in Excel VBA help.
<o
> </o
>
Thanks,
<o
> </o
>
-dd
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com




The line
<o


ActiveSheet.Shapes("CommandButton1").Enabled = False
<o


generates an error (Object doesn't support this property or method) contrary to
<o


ActiveSheet.Shapes("CommandButton1").Visible= False
<o


that works perfectly.
Which CommandButton properties can and which cannot be (simply) altered from within macro? I was unable to find anything in Excel VBA help.
<o


Thanks,
<o


-dd