I have a "Switchboard" sheet as the landing sheet on opening the workbook. It has 3 columns of buttons to take the user to whatever sheet or action they wish to access. All buttons are activex so I can be creative with them. They all work fine (I think), but are not related to cells, therefore alignment is subject to my shaky hands when working with them . I want a single button to align enact a macro which set width, heigth, left and top for each button and those numbers wi depend upon the colomn they are in. The attached code works fine for a single button, but I cannot use an array of button names to insert the name in the command to alter as I process each button through the loop. If i use a line of code for every button name, it would work fine and dandy, but I want a small routine that get repeated on each passthrough the loop with only the button name and some other minor parameters being changed(Top). The command to alter the Left, etc will not allow me to use a variable to specify the button name to be subjected to the change. The workbook will show the sheet and the reference table that provides the column to button names. The code is in button number 20.
Bookmarks