Button names in VB
Posted by Charles Parsons on April 23, 2001 6:16 AM
I have an opening page with twenty active buttons, most of which began life as a picture or a group. Currently, each button is assigned its own macro. I would like to replace the 20 macros with one macro (assigned to all 20 buttons) that does something based on which button was selected, along the lines of
IF("Button1", do something)
IF("Button2", do something else)
(Obviously, a judicious renaming of buttons will help.) The problem is, apparently once a macro is assigned to an object to form an active clickable button, VB no longer utilizes the object's name, it only recognizes the underlying macro. Is this true?