Saving documents

G

GWizz

Wanting to save a document to a predefined path but i want it to bring up the
saveas dialog box with a uniquely generated name. I have coded the name
generation & path defining code but struggle to bring up the SaveAs dialog
box populated with the predifned filename. I specifically want the user to be
able to overide it immediately before saving.

Any ideas greatly appreciated.

Regards
--
 
P

Perry

Dim dlg As FileDialog
Set dlg = Application.FileDialog(msoFileDialogSaveAs)
With dlg
.InitialFileName = "c:\temp\MyGeneration.doc"
If .Show Then .Execute
End With
 
G

GWizz

Thanks Perry Superb !
--

Perry said:
Dim dlg As FileDialog
Set dlg = Application.FileDialog(msoFileDialogSaveAs)
With dlg
.InitialFileName = "c:\temp\MyGeneration.doc"
If .Show Then .Execute
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top