B
bramnizzle
I have created a workbook that has multiple hidden and unhidden
sheets. I have a macro that allows the user to select hidden sheets
from a list. However, another option I need is for the user to be
able to select the very last sheet whether it is hidden or not.
Worksheets(Worksheets.Count).Activate
only works for sheets that are not hidden.
I want a macro that finds the very last sheet in the workbook, whether
it is hidden or not.
I thought of using the SelectSheets macro I have, but again, I don't
want to create a list of all sheets, I just want it to go directly to
*the very last sheet*.
Can anyone help?
Thanks in advance.
sheets. I have a macro that allows the user to select hidden sheets
from a list. However, another option I need is for the user to be
able to select the very last sheet whether it is hidden or not.
Worksheets(Worksheets.Count).Activate
only works for sheets that are not hidden.
I want a macro that finds the very last sheet in the workbook, whether
it is hidden or not.
I thought of using the SelectSheets macro I have, but again, I don't
want to create a list of all sheets, I just want it to go directly to
*the very last sheet*.
Can anyone help?
Thanks in advance.