Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default re : Save As

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default re : Save As

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default re : Save As

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
Disable save, save as, but allow save via command button TimN Excel Programming 10 September 1st 06 07:05 PM
How to diasble save and save as menu but allow a save button hon123456 Excel Programming 1 June 12th 06 09:50 AM
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: harpscardiff[_10_] Excel Programming 8 November 10th 05 12:24 PM
Why system asks me to save change even after I call save method(VB.NET) steellock Excel Programming 2 April 27th 04 04:14 AM


All times are GMT +1. The time now is 01:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"