I understand that. But, I can't figure out how to "assign" this macro to
the file so that it will run when the file opens. I am not
experienced
enough with VB to figure this part out.
You MUST use the name Aut

pen
Sub Aut

pen()
'
' Aut

pen Macro
' Macro recorded 20/06/2006 by Me
'
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\<My Name>\My Documents\Test01.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub
First off, thanks for your continued efforts!
I tried to insert your code into the "ThisWorkbook" folder under the
VBAProject (Report with Graph). It did not work. The file opens and
nothing happens.
I have a file named "Report with Graph". When I open the file, I want
the
File Save As... dialogue box to simply popup so that I have to save the file
as a new name, like "06K025" or "06M034", etc. This file name is not
necessarily in numeric order, so I must name it each time.
I just want the "master" file to immediately prompt me to save as a new
filename whenever it is opened.
Another catch... I don't want the new file like "06K025" to have this
feature. Once it is created, it needs to be void of this code. That
way,
when I open it I won't have to save it as something else, etc., etc.
Here is the code that I was getting close with, but keep getting errors.
Private Sub Workbook_Open()
Do
fName = Application.GetSaveAsFilename ([FileFormat:="Microsoft Excel
Workbook (*.xls), *.xls])
Loop Until fName <> False
ActiveWorkbook.SaveAs Filename:=fName, FileFormat:=xlNormal'
End Sub