Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
In my macros, I would like to have the script that will save the file as per my request. Path: D:/A Daily Yield/B Flex/VPB.csv Can anyone help me on this code? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This worked on an Excel workbook:
Sub savAss() ActiveWorkbook.SaveAs Filename:=InputBox("Enter Filename") & ".xls" MsgBox ActiveWorkbook.Name End Sub You can change the .xls to suit your purposes. "ddiicc" wrote: Hi there, In my macros, I would like to have the script that will save the file as per my request. Path: D:/A Daily Yield/B Flex/VPB.csv Can anyone help me on this code? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If the path and file you posted is what you want to save as then the syntax is:
ActiveWorkbook.SaveAs Filename:="D:/A Daily Yield/B Flex/VPB.csv" My previous posting assumed you wanted to save a file in the current directory and path. "ddiicc" wrote: Hi there, In my macros, I would like to have the script that will save the file as per my request. Path: D:/A Daily Yield/B Flex/VPB.csv Can anyone help me on this code? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
Disable save, save as, but allow save via command button | Excel Programming | |||
How to diasble save and save as menu but allow a save button | Excel Programming | |||
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: | Excel Programming | |||
Why system asks me to save change even after I call save method(VB.NET) | Excel Programming |