?? on an Archive2 post re: Save file name = contents of a cell
Posted by Lori D on September 24, 2001 5:39 AM
I have a question that I found a partial answer to in Archive2 on how to save a file using the contents of a cell as the file name. My question is, what if the contents of the cell is a date? I am getting an error that I think is due to the "\" in the date? How can I fix this? BTW - The response to the question in the archive was the following code from Alix:
Sub NameFile
Range("A1").Select
file_path = ActiveCell.Value
Thanks in advance for your help.
Range("B1").Select
ActiveWorkbook.SaveAs FileName:=file_path & ActiveCell.Value
End Sub
Cell A1 contains the filepath, B1 contains (what I want to be) the file name.