R
Roger
Hi Everyone,
I have the below routine set to copy a page to my desktop. Is there a way
to have it change the save name to a particular cell's value? If Range(“L6â€)
equals a certain word, I would like it to save as that particular name.
Thanks in advance for your thoughts - Roger
Sub Finalstop()
ActiveSheet.Copy
ChDir "C:\Documents and Settings\Roger\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Roger\Desktop\New File.xls", FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWorkbook.Close
End
I have the below routine set to copy a page to my desktop. Is there a way
to have it change the save name to a particular cell's value? If Range(“L6â€)
equals a certain word, I would like it to save as that particular name.
Thanks in advance for your thoughts - Roger
Sub Finalstop()
ActiveSheet.Copy
ChDir "C:\Documents and Settings\Roger\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Roger\Desktop\New File.xls", FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWorkbook.Close
End