
Setting Save As path in Powerpoint using VBA
Steffen,
PowerPoint 2002 has native support for file dialogs, check the FileDialog
object in the help files.
Use the InitialFileName property to set the Path
' ----- Beginning Of Code -----
Sub Test()
Dim X As FileDialog
Set X = Application.FileDialog(msoFileDialogSaveAs)
With X
.InitialFileName = "C:\My folder name\"
.Show
End With
End Sub
' ----- End Of Code -----
In PowerPoint 97/2000 the file dialogs were unsupported, I've a couple of
examples on my site which make use of the undocumented objects.
Check out:
http://www.mvps.org/skp/ppt00043.htm
--
Regards
Shyam Pillai
Image Importer Wizard
http://www.mvps.org/skp/iiw.htm
Quote:
> How can I set the Path displayed in "Save As" from VBA in Powerpoint?
> Regards,
> Steffen