Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sheets("Sheet1").Move After:=Sheets(2)
Is there syntax that will allow me to move a sheet of choice to the end
without requiring the number of sheets being known? Arturo |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sheets("Sheet1").Move After:=Sheets(2)
Hello Arturo, Change "Sheet1" to the sheet you wish to move to the end. Worksheets("Sheet1").Move After:=Worksheets(Worksheets.Count) Sincerely, Leith Ross -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=503032 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sheets("Sheet1").Move After:=Sheets(2)
Just found this link:
http://computerwhizzard.50megs.com/excelmacros.html Sub AddSheetsTutorialExampleRevised() With ActiveSheet .Move after:=Worksheets(Worksheets.Count) End With End Sub "Arturo" wrote: Is there syntax that will allow me to move a sheet of choice to the end without requiring the number of sheets being known? Arturo |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sheets("Sheet1").Cells.ClearContents | Excel Discussion (Misc queries) | |||
"Count" and "List" functions across sheets | Excel Worksheet Functions | |||
"move tab sheets" | Excel Worksheet Functions | |||
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" | Excel Programming | |||
Sheets("sheet1").Range command between workbooks | Excel Programming |