T
TinaF
This is probably really simple - I want to record (or get) a macro that
will do a "File-Save As-'whatever is in cell D3.xls'"
I've tried to record such a macro myself and thought it would be easy -
but when I try to run it, it re-enters whatever was in cell D3 during
the record process and attempts to save the file with that same name
again.
Below is what was recorded during my "Record Macro" steps. How do I
get it to copy WHATEVER is in R3C4 rather than defaulting to 60333,
which is what was there during the record?
Sub SaveQuote()
'
' SaveQuote Macro
' Macro recorded 12/12/2006 by Tina Ferraro
'
' Keyboard Shortcut: Ctrl+Shift+S
'
Application.Goto Reference:="R3C4"
ActiveCell.FormulaR1C1 = "60333"
ChDir "I:\Revised Estimating"
ActiveWorkbook.SaveAs Filename:="I:\Revised Estimating\60333.XLS",
_
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub
will do a "File-Save As-'whatever is in cell D3.xls'"
I've tried to record such a macro myself and thought it would be easy -
but when I try to run it, it re-enters whatever was in cell D3 during
the record process and attempts to save the file with that same name
again.
Below is what was recorded during my "Record Macro" steps. How do I
get it to copy WHATEVER is in R3C4 rather than defaulting to 60333,
which is what was there during the record?
Sub SaveQuote()
'
' SaveQuote Macro
' Macro recorded 12/12/2006 by Tina Ferraro
'
' Keyboard Shortcut: Ctrl+Shift+S
'
Application.Goto Reference:="R3C4"
ActiveCell.FormulaR1C1 = "60333"
ChDir "I:\Revised Estimating"
ActiveWorkbook.SaveAs Filename:="I:\Revised Estimating\60333.XLS",
_
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub