Quantcast
Channel: Project Developer
Viewing all articles
Browse latest Browse all 50

Multiple toolbar buttons executing one macro

$
0
0
I have multiple buttons on a toolbar (not on a form) (MS Project 2007) that I want to fire off one macro.

I want this macro to read the Text of the button that was pressed and pass that text value to another macro which will "do something" based on the button text.

So it would be something like this...
Button 1 Text: "Red"
Button 2 Text: "Yellow"
Button 3 Text: "Green"

Public Sub Button_Pressed

Dim ButtonText as string

ButtonText = <Text/Caption of Button that was pressed>

DoSomething...

Read more

Viewing all articles
Browse latest Browse all 50

Trending Articles