Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copying shts from one wbk to another
What would be the equivalent in VBA code to the Right click on the worksheet tab where you can then Copy the sheet or sheets to another workbook (which in this case would be a new one). Can anyone help? Many thanks Jacqui |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copying shts from one wbk to another
Hi Jacqui,
This macro will copy the first worksheet in the workbook where it runs into a new workbook: Sub CopySheet() ThisWorkbook.Worksheets(1).Copy End Sub -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * "jacqui" wrote in message ... What would be the equivalent in VBA code to the Right click on the worksheet tab where you can then Copy the sheet or sheets to another workbook (which in this case would be a new one). Can anyone help? Many thanks Jacqui |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copying shts from one wbk to another
One way:
ActiveWindow.SelectedSheets.Copy In article , "jacqui" wrote: What would be the equivalent in VBA code to the Right click on the worksheet tab where you can then Copy the sheet or sheets to another workbook (which in this case would be a new one). Can anyone help? Many thanks Jacqui |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change Chart Properties for Multiple Chart Shts using a Worksheet | Charts and Charting in Excel | |||
VLOOKUP using the act shts tab name as a reference for the table_a | Excel Discussion (Misc queries) | |||
copying the Hyperlink function result without copying the actual formula | Excel Worksheet Functions | |||
formula to add cells in multiple shts in the same wkbk | Excel Worksheet Functions | |||
How to Compare Rows on 2 shts .... | Excel Discussion (Misc queries) |