A
Anne
Hello!
I want to save a project file with actual date and
time. "Pfad1" and "dateiname" contain the right values if
I use a messagebox, but fileSaveAs does not work. Only if
I use the absolute path saving is done. Is it impossible
to use dynamic filenames?
Anne
Dim Pfad1 As String
Pfad1 = CurDir
Dim dateiname As String
dateiname = projectnumber & ".Time Schedule." & Now
& ".mpp"
Application.FileSaveAs (Pfad1 & dateiname)
'this variant works
Application.FileSaveAs "G:\dummy\PM\AF Projekte\03444.Time
Schedule.20030725.mpp"
I want to save a project file with actual date and
time. "Pfad1" and "dateiname" contain the right values if
I use a messagebox, but fileSaveAs does not work. Only if
I use the absolute path saving is done. Is it impossible
to use dynamic filenames?
Anne
Dim Pfad1 As String
Pfad1 = CurDir
Dim dateiname As String
dateiname = projectnumber & ".Time Schedule." & Now
& ".mpp"
Application.FileSaveAs (Pfad1 & dateiname)
'this variant works
Application.FileSaveAs "G:\dummy\PM\AF Projekte\03444.Time
Schedule.20030725.mpp"