AcousticalConsultant
Technical User
I'm trying to figure out how to know when a specific button has been pushed on a toolbar. The reason for this is that if I open my document containing macros manually, it will display a message (instructions). However, if the user pushes a toolbar button associated with the document, I don't want the message to show up. So how do I know if the button has been pushed or not? I have tried several things, this seems to be the closest:
If (CommandBars("myBar".Controls(1).Enabled = true) Then
.
.
.
End If
But that line always returns "True" not matter what I do. Even if the toolbar is turned off (not visible).
Please help!
Thanks a lot!
If (CommandBars("myBar".Controls(1).Enabled = true) Then
.
.
.
End If
But that line always returns "True" not matter what I do. Even if the toolbar is turned off (not visible).
Please help!
Thanks a lot!