changing button prop with vba
You can not use Activesheet. You need to specifically reference the sheet
that the button is on. Something like this...
Sheet1.btnReconciliation.enable = True
--
HTH...
Jim Thomlinson
"Arnold Klapheck" wrote:
I have set a buttons enable property to false for startup and am now trying
to enable the button. It is directly on the worksheet and named
btnReconciliation I have tried the following.
Sub EnableReconcil()
ActiveSheet.btnReconciliation.enable = True
'Runtime error 438 Object dosn't support this property or message
ActiveSheet.Buttons("btnReconciliation").enable = True
'Runtime error 1004 unable to get buttons property of the worksheet class
ActiveSheet.OLEObjects("btnReconciliation").enable = True
'Runtime error 1004 unable to get buttons property of the worksheet class
End Sub
any ideas what I could do?
|