Move or Copy Sheet...

Home Search Site Map

Up
Clear
Copy
Cut
Delete...
Delete Sheet
Fill
Find...
Go To...
Links...
Move or Copy Sheet...
Object
Office Clipboard...
Paste
Paste as Hyperlink
Paste Special...
Redo
Replace...
Undo

New! Excel User Group Now Open @ www.excelusergroup.org, Check It Out!


Menu command Type What happens next?
Move or Copy Sheet... ...

Allows you to move or copy sheets around a workbook or to a new one. This presents a dialog (Shown left), from which you can choose any open workbook in the 'To book:' drop-down or a new one and check the checkbox to make a copy. If you leave this unchecked, like cut and paste the sheet will be 'moved' to the new location. By selecting in the 'Before sheet' list box, you can accurately position the new move/copy. The copied sheet, if it remains in the current workbook, cannot have the same name so Excel appends a number such a (1) after the sheet name to make them unique.

Sub CopySheet()
'Copying sheet1 and placing it after sheet2t2
Worksheets("Sheet1").Copy After:=Worksheets("Sheet2")
'Not specifying a destination copies it to a new workbook
Worksheets("Sheet1").Copy
End Sub

Sub MoveSheet()
'moves it...does not create a copy
Worksheets("Sheet1").Move After:=Worksheets("Sheet2")
End Sub

Top

Copyright Nick Hodge 2008. All Rights Reserved.