Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Variable Filename

Hi Guys,

In an Excel Macro I want to use a command to save an active Excel file in
folder C:\2009 and the name of the file should be 7A €˜space and then the
contents of cell B3 of the active file.
Example: 7A Garo (Garo is the contents of cell B3)

In another macro I want to open this same file keeping the 7A constant but
the rest of the filename is the contents of a cell C3 of the active file.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Variable Filename

Workbooks.SaveAs "7A " & Activesheet.Range("B3").Value

and

Workbooks.Open"7A " & Activesheet.Range("C3").Value

--
__________________________________
HTH

Bob

"Berj" wrote in message
...
Hi Guys,

In an Excel Macro I want to use a command to save an active Excel file in
folder C:\2009 and the name of the file should be 7A 'space' and then the
contents of cell B3 of the active file.
Example: 7A Garo (Garo is the contents of cell B3)

In another macro I want to open this same file keeping the 7A constant but
the rest of the filename is the contents of a cell C3 of the active file.

Thanks



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
filename as variable [email protected] Excel Programming 1 December 5th 07 08:47 PM
Filename variable [email protected] Excel Programming 17 September 4th 06 02:47 PM
Converting a Variable Filename to a Constant Filename Magnivy Excel Programming 2 August 15th 06 06:13 PM
Variable Filename calls Grymjack Excel Programming 0 June 7th 06 05:34 PM
Filename Variable? Penflex Excel Programming 2 May 5th 05 05:11 PM


All times are GMT +1. The time now is 10:30 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"