Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This was working yesterday, but now it is not. I have a custom popup menu on a userform (this works great) that contains a PrintPreview button, that I want to change the state from msoButtonUp to msoButtonDown, and reverse when I click on the button. The following code was working, but now is not, any ideas? Public Sub FilePrintPreview() Dim ctrl As CommandBarButton Set ctrl = Application.CommandBars.FindControl(Tag:="FilePrin tPreview") 'Changes the buttons state from Down-Up or Up-Down ctrl.State = IIf(ctrl.State = msoButtonDown, msoButtonUp, msoButtonDown) End Sub -- Don''t forget to rate the post if it was helpful! Email address is not valid. Please reply to newsgroup only. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Detecting Change in State of Internet Explorer | Excel Programming | |||
' Invoice' , change ' State and ZIP' to 'Prov and PC' How? | Excel Discussion (Misc queries) | |||
trouble with commandbarbutton.state | Excel Programming | |||
how to change the state of a number in a cell from negative to po. | Excel Discussion (Misc queries) | |||
Change ReadOnly State | Excel Programming |