Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy a Sheet
I am trying to use the following code to copy a master sheet after the last
sheet in the workbook. Sheets("master").Select Sheets("master").Copy After:=Sheets(6) The last part of the above is giving me the trouble. What should the After:= statement be? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy a Sheet
Sheets("master").Copy After:=Sheets(Sheets.count)
-- Regards, Tom Ogilvy "Judd Jones" wrote in message ... I am trying to use the following code to copy a master sheet after the last sheet in the workbook. Sheets("master").Select Sheets("master").Copy After:=Sheets(6) The last part of the above is giving me the trouble. What should the After:= statement be? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy a Sheet
How about a message box to rename the sheet that is created?
"Tom Ogilvy" wrote: Sheets("master").Copy After:=Sheets(Sheets.count) -- Regards, Tom Ogilvy "Judd Jones" wrote in message ... I am trying to use the following code to copy a master sheet after the last sheet in the workbook. Sheets("master").Select Sheets("master").Copy After:=Sheets(6) The last part of the above is giving me the trouble. What should the After:= statement be? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy a Sheet
"Judd Jones" wrote in message ... I am trying to use the following code to copy a master sheet after the last sheet in the workbook. Sheets("master").Select Sheets("master").Copy After:=Sheets(6) The last part of the above is giving me the trouble. What should the After:= statement be? Sheets("Master").Copy After:=Sheets(Sheets.Count) 'copy it Sheets(Sheets.Count).Name = "Master-2" 'rename it something useful |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy rows from one Data sheet to another sheet based on cell conte | Excel Discussion (Misc queries) | |||
Auto Copy/autofill Text from sheet to sheet if meets criteria | Excel Discussion (Misc queries) | |||
Search for rows in one sheet and copy into another sheet based on customer id | Excel Worksheet Functions | |||
relative sheet references ala sheet(-1)!B11 so I can copy a sheet. | Excel Discussion (Misc queries) | |||
providing a sheet-copy event or copy CustomProperties | Excel Programming |