G
Guest
hi,
I have the following code:
obj.Sheets("Data2").Visible = False
obj.Sheets("Data1").Visible = False
obj.Application.ActiveWorkbook.Close savechanges:=True
obj.Application.DisplayAlerts = True
obj.Quit
Set obj = Nothing
I know that I want to save the spreadsheet as another name before closing it
and saving the changes. sorta like a copy, but with another filename.
I am not sure how and where to add the code to achieve this. HELP!
Thanks in advance,
geebee
I have the following code:
obj.Sheets("Data2").Visible = False
obj.Sheets("Data1").Visible = False
obj.Application.ActiveWorkbook.Close savechanges:=True
obj.Application.DisplayAlerts = True
obj.Quit
Set obj = Nothing
I know that I want to save the spreadsheet as another name before closing it
and saving the changes. sorta like a copy, but with another filename.
I am not sure how and where to add the code to achieve this. HELP!
Thanks in advance,
geebee