Variable Filename

B

Berj

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
 
B

Bob Phillips

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

and

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top