Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to copy a worksheet to a new workbook and then close the
current workbook, so I can work in the worksheet. This is what I've written. Worksheets("Source_Worksheet").Activate ActiveSheet.Copy ActiveSheet.Paste ActiveSheet.SaveAs "c:\My Excel Files\" & wsname & ".xls" Workbooks("Source_Workbook.xls").Close When I try the SaveAs, I get a run-time 1004 error for a bad path or file name. (wsname is a string data type.) David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving a Worksheet/Workbook with VALUES ONLY | Excel Discussion (Misc queries) | |||
Saving Worksheet/Workbook via CommandButton | Excel Programming | |||
Saving into 1 workbook as a different worksheet | Excel Worksheet Functions | |||
When saving workbook only the first worksheet gets saved. | Excel Worksheet Functions | |||
Saving a worksheet out of a workbook | Excel Programming |