Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
variable file names
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 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
variable file names
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) "Brettjg" wrote in message ... 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 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
variable file names
Thankyou so much Bob, you've changed my life!
"Bob Phillips" wrote: 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) "Brettjg" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Variable Names in Source Data References in Charts | Charts and Charting in Excel | |||
Listing variable names for 3 greatest values in a column? | Excel Worksheet Functions | |||
Variable Names in Formulas | Excel Discussion (Misc queries) | |||
Combining workbooks with some variable field names | Excel Discussion (Misc queries) | |||
are variable table-array names in functions possible? | Excel Discussion (Misc queries) |