Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, Im using 2002 and Im new to VB.
I need to save a new workbook with a file name. The file name is stored in a variable called NewName If I code as below ActiveWorkbook.SaveAs FileName:= _ :\c€¦..\NewName.xls Of course, the file is saved as Newname.xls and not as the contents of the variable NewName is there another way ? Many thanks, PS I hope Ive explained this clearly |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
activeworkbook.saveas filename:="whatever that was\" & newname & ".xls"
PraxisPete wrote: Hi, Im using 2002 and Im new to VB. I need to save a new workbook with a file name. The file name is stored in a variable called NewName If I code as below ActiveWorkbook.SaveAs FileName:= _ :\c€¦..\NewName.xls Of course, the file is saved as Newname.xls and not as the contents of the variable NewName is there another way ? Many thanks, PS I hope Ive explained this clearly -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you Dave
"Dave Peterson" wrote: activeworkbook.saveas filename:="whatever that was\" & newname & ".xls" PraxisPete wrote: Hi, I€„¢m using 2002 and I€„¢m new to VB. I need to save a new workbook with a file name. The file name is stored in a variable called NewName If I code as below ActiveWorkbook.SaveAs FileName:= _ :\c€¦..\NewName.xls Of course, the file is saved as Newname.xls and not as the contents of the variable NewName is there another way ? Many thanks, PS I hope I€„¢ve explained this clearly -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook "Sheet" Naming | Excel Discussion (Misc queries) | |||
Workbook naming | Excel Programming | |||
Workbook naming | Excel Programming | |||
Workbook naming | Excel Programming | |||
Naming an Excel Workbook | Excel Programming |