Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Sheets("Sheet1").Move After:=Sheets(2)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arturo - 19 Jan 2006 19:21 GMT
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
Leith Ross - 19 Jan 2006 19:30 GMT
Hello Arturo,

Change "Sheet1" to the sheet you wish to move to the end.

Worksheets("Sheet1").Move After:=Worksheets(Worksheets.Count)

Sincerely,
Leith Ross

Signature

Leith Ross

Arturo - 19 Jan 2006 19:33 GMT
Just found this link:

http://computerwhizzard.50megs.com/excelmacros.html

Sub AddSheetsTutorialExampleRevised()
   With ActiveSheet
       .Move after:=Worksheets(Worksheets.Count)
   End With
End Sub

> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.