I am working on a task that requires the creation of several charts from worksheets. Each worksheet will have the data that will produce about 10 charts with different groupings. I automated the process with buttons on the worksheet.
I have several other worksheets with different data but with a similar process of generating the charts. I have buttons on each worksheet that produce the charts with the same groupings.
The charts on worksheets have different benchmarks set.
Now I replicated the vba code for each worksheet.
Is there any way that I can have a common module for all the worksheets that has the code, but will only address the buttons on the ActiveSheet?
The buttons operate on Click events and how can I refer to the buttons on the ActiveSheet from the common module for the workbook?
Thanks in advance.