Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic File Names

Status
Not open for further replies.

guyKn

Technical User
Sep 25, 2003
22
GB
I have a worksheet that changes - Each time there is change I want to use a macro to save the file using a name in a cell on the worksheet. - Can you help?

GK
 
Try using the following

filenam = Cell(i,j).Value
ActiveWorkbook.SaveAs Filename:= filnam

i is the row number of the cell and j is the column. The Name of the file is held within the Cell at i ,j. Think this should work
Let me know

dyarwood
 
Hi,

Thanks, however the 'cell' bit is not recognised - Keep getting the error message sub or function not defined

Any Ideas?

GK
 
Sorry I keep doing this in my macros. Its supposed to be Cells not Cell.

dyarwood
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top