Visio VBA - Assigning 4 macros to 4 buttons throughout a visio file
Posted on 2014-01-21
I would like to have four macro buttons on every page of my 23 page visio file.
I attached code to each command button click event and they all work on one page but when I copy those same four buttons to another page. I get command button5, 6, 7, 8.
When I try to rename the newly pasted button from command button5 back to commandbutton 1, I get "Ambiguous Name Detected Command Button 1"
I don't want to reprogram or copy code over and over again.
I want to invoke those same four code modules regardless of what page they're on.