Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I move a sheet to the end of the workbook in VB?
I know how to move the sheets around:
Sheets("1996").Select Sheets("1996").Move After:=Sheets(2) But how can I move the sheet to the end of the book if the number of sheets in the book changes often? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I move a sheet to the end of the workbook in VB?
Jon,
Try the following: With ThisWorkbook.Worksheets .Item("1996").Move after:=.Item(.Count) End With -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Jon Davie" <Jon wrote in message ... I know how to move the sheets around: Sheets("1996").Select Sheets("1996").Move After:=Sheets(2) But how can I move the sheet to the end of the book if the number of sheets in the book changes often? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I move from one sheet to another in a workbook w/out mouse | Excel Discussion (Misc queries) | |||
move a sheet to another workbook | Excel Discussion (Misc queries) | |||
Move the sheet tab bar to the top of the workbook? | Excel Discussion (Misc queries) | |||
I would like to move from sheet to sheet in a workbook using keybo | New Users to Excel |