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?
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?
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 [email protected]> wrote in
message
news:[email protected]...
>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?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks