variable file names

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a cell that has a varaible file name and I want to save the
file in a variable folder name (for which I have another cell with the new
info). The folder is \SURNAME, INITAL\ and the file name is FINANCE
SURNAME.xls. I open the master FINANCE file and I want to save it as
"C:\ACTIVE CLIENTS\SURNAME, INITIAL\FINANCE SURNAME.xls" The variables in
that path are "SURNAME" and "INITIAL".

How do I get VB to get the information from the cell and then save the new
variable name file? The cells are called folder_name and file_name
 
With Worksheets("Sheet1")
Activeworkbook.SaveAs Filename:= .Range("folder_name") &
..Range("file_name")
End With

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Thankyou so much Bob, you've changed my life!

Bob Phillips said:
With Worksheets("Sheet1")
Activeworkbook.SaveAs Filename:= .Range("folder_name") &
..Range("file_name")
End With

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Similar Threads


Back
Top