I've been playing around with the Add-Ins tab lately and am looking at improving loops when adding Popup controls.
Each popup control has a number of macros linked to it (as Control buttons) and the names of these macros are recorded in a variant array.
Now when adding these popups to the Add-Ins tab, I need to repeat the code for every popup instance which is messy and inefficient. I was wondering:Please Login or Register to view this content.
- whether a "parent" array could be used to hold all the popup arrays declared in the procedure?
- If yes to above, can it be worked so that I don't need to define the names/number of the popup arrays when adding to the parent array?
- How can I loop through the parent array to repeat the add ControlButtons code for each Popup array inside the parent array?
- Am I on the wrong track and should be looking at Collections instead (which I know next to nothing about)?
Bookmarks