Howdy!
I have a question that I found answers to online, but the answers I found confused me more than helped me.
I have a workbook I built out a ton of code for. It has 12 sheets (Jan-Dec), and each sheet has 5 buttons. I set variables for names on these buttons as follows:
So since each sheet has 5 buttons, I had to set these names a total of 60 times. Is there a way I can just set them once? It'd make life easier if staffing changes occur to just go change one set of variables vs. having to update 60, but I'm not sure how to do that.
Also, and this isn't as important, but is there a way for a separate, open workbook, to call the variables from this one? The code in this other workbook will be using the exact same set of variables, but since it's on a completely different workbook I didn't know if it was possible.
Thanks for the help! All the answers I've received from this forum have slowly helped me increase my VBA knowledge to the point that I'm finally writing my own code (albeit slowly), so I can't wait to learn about this too!
Bookmarks