Welcome to the forum,
Originally Posted by
Jgray805
...
1. So I'd like to find a way where i can create just a few macros instead of 365
2. what id rather do is some how call those ranges based on some offset of the cell that the macro button is at (the box of the day that i want to calculate the count per hour of the day).
3. i could use the same macro for the entire month rather than having to have a separate macro for each day
4. id need a total of 12 macros this way since each month i want the results to display in the same area as the month
5. id want the macro to show the results on lines AE112:AF112 etc
6. so i don't have to copy paste and edit 365 macros, and create all those range names 730 :O
...
hello Shakespeare ...
So ... what exactly do you want to achieve ?
If you have many buttons to which you want to link a macro/macros, for example you can do it this way (for Microsoft Excel controls):
or alternatively ... if you want to operate multiple buttons with one macro, for example you can do it this way:
See example in the attachment:
1. Initial state - buttons without macro/macros assigned
2. You run the macro "A1_assign_macro_ABC_to_buttons"
3. Then you press the buttons
Bookmarks