Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the new workbook in JMay code will create an empty workbook. the code below
will save the current workbook to a new filename. Sub Macro1() Folder = activeworkbook.path fName = Sheets("Invoice").Range("$H$2").Value Thisworkbook.SaveAs Filename:=Folder & "\" & fName End Sub "Alpineskier" wrote: I am converting an old Excel 4 macro to VBA and I want to save single worksheet to a new .xls file. The old command was =SAVE.AS(path&CELL("contents",Invoice!$H$2),1,"",F ALSE,"",TRUE). I am using Excel 2003 and VBA v6.5. "JMay" wrote: Here's a start... Sub Macro1() fName = Sheets("Invoice").Range("$H$2").Value Set NewBook = Workbooks.Add NewBook.SaveAs Filename:=fName End Sub "Alpineskier" wrote: I am converting an old Excel 4 macro to VBA and I want to save single worksheet to a new .xls file. The old command was =SAVE.AS(path&CELL("contents",Invoice!$H$2),1,"",F ALSE,"",TRUE). I am using Excel 2003 and VBA v6.5. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save as single file webpage | Excel Programming | |||
Save Single Worksheet | Excel Programming | |||
How to save a single worksheet as worksheet name in new folder?? | Excel Programming | |||
Save a single worksheet in Excel as a single file. | New Users to Excel | |||
Save single worksheet? | Excel Programming |