M
Michelle72
I have a workbook with 10 worksheets in it. The first sheet is a data
entry page and upon filling in all necessary cells, I click on a button
for a macro I have created that runs a series of macros on all sheets.
This macro consists of several other macros...for example, it selects
the next sheet and performs a macro then selects the next sheet and
performs a macro and so on until it has run each macro on the 9
sheets(one on each sheet). Currently, in the large macro on the 1st
sheet it selects the next sheet as follows:
Sheets("name of sheet").Select
Is there anyway to tell it to select the next worksheet without having
to actually have the name of the sheet in there? In the future, I will
be adding and deleting worksheets as my customer base changes and it
would be great to have a "generic select the next sheet until there
aren't anymore code" and it would allow me to not have to edit my
macro(s) everytime that happens
Any help would be greatly appreciated!
Thanks,
Michelle
entry page and upon filling in all necessary cells, I click on a button
for a macro I have created that runs a series of macros on all sheets.
This macro consists of several other macros...for example, it selects
the next sheet and performs a macro then selects the next sheet and
performs a macro and so on until it has run each macro on the 9
sheets(one on each sheet). Currently, in the large macro on the 1st
sheet it selects the next sheet as follows:
Sheets("name of sheet").Select
Is there anyway to tell it to select the next worksheet without having
to actually have the name of the sheet in there? In the future, I will
be adding and deleting worksheets as my customer base changes and it
would be great to have a "generic select the next sheet until there
aren't anymore code" and it would allow me to not have to edit my
macro(s) everytime that happens
Any help would be greatly appreciated!
Thanks,
Michelle