G
Guest
Quck question I hope. Using Excel 2007 - Is there code to process a Save as?
I need to include the statement to save a file as the valus contained in
cell AE2 (This is a constant). I copied and pasted while recording - however
now it saves all files as the value that was in AE2 (this is a merged cell
containing AE2-AN2 but can be unmerged easily) when the Macro was created....
Range("AE2:AN2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "CAS-7403-477"
ChDir "C:\Datatel Merges"
ActiveWorkbook.SaveAs Filename:="C:\Datatel Merges\CAS-7403-477.xls", _
FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Help????
I need to include the statement to save a file as the valus contained in
cell AE2 (This is a constant). I copied and pasted while recording - however
now it saves all files as the value that was in AE2 (this is a merged cell
containing AE2-AN2 but can be unmerged easily) when the Macro was created....
Range("AE2:AN2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "CAS-7403-477"
ChDir "C:\Datatel Merges"
ActiveWorkbook.SaveAs Filename:="C:\Datatel Merges\CAS-7403-477.xls", _
FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Help????