ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Find worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/188655-find-worksheet.html)

LantzK

Find worksheet
 
I have a workbook that is constantly having sheets added. I would like to
run a macro where clicking on a button goes to the sheet before "last sheet".
Is this possible?

Thanks in advance


John Bundy

Find worksheet
 
make a button and in the code for it put

Sheets(Sheets.Count - 1).Select

--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"LantzK" wrote:

I have a workbook that is constantly having sheets added. I would like to
run a macro where clicking on a button goes to the sheet before "last sheet".
Is this possible?

Thanks in advance



All times are GMT +1. The time now is 02:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com