Setting Save As path in Powerpoint using VBA 
Author Message
 Setting Save As path in Powerpoint using VBA

How can I set the Path displayed in "Save As" from VBA in Powerpoint?

Regards,
Steffen



Sun, 09 Jan 2005 23:34:27 GMT  
 Setting Save As path in Powerpoint using VBA
Try Tools, Options, Advanced.

--
Steve Rindsberg PPT MVP
PPT FAQ:  http://www.pptfaq.com
PPTools:  http://www.pptools.com

Quote:
> How can I set the Path displayed in "Save As" from VBA in Powerpoint?

> Regards,
> Steffen



Mon, 10 Jan 2005 01:06:06 GMT  
 Setting Save As path in Powerpoint using VBA
Steffen,
In addition to Steve's idea, how about

Option Explicit

Sub Save_As_Dialog()
Application.CommandBars("File").Controls("Save As...").Execute
End Sub

Brian Reilly, PowerPoint MVP



Mon, 10 Jan 2005 02:52:51 GMT  
 Setting Save As path in Powerpoint using VBA

Quote:

>Application.CommandBars("File").Controls("Save As...").Execute

Fine. But how do I set the path displayed programatially?
Chdrive/chdir doesn't work.

Regards,
Steffen



Mon, 10 Jan 2005 17:03:56 GMT  
 Setting Save As path in Powerpoint using VBA
Steffen,

Try this article.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnov...

Cheers
Andy

Quote:

> How can I set the Path displayed in "Save As" from VBA in Powerpoint?

> Regards,
> Steffen



Mon, 10 Jan 2005 21:05:58 GMT  
 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



Mon, 10 Jan 2005 22:07:30 GMT  
 Setting Save As path in Powerpoint using VBA


Quote:
>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

Thank you!

Steffen



Fri, 28 Jan 2005 20:03:33 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Error trying to set relative path on linked powerpoint presentation

2. PowerPoint VBA Best Scale Setting

3. Problems updating MS Graph charts in Powerpoint using Excel VBA

4. Remove status bar in Powerpoint using VBA

5. Opening embedded Word Doc in Powerpoint Slideshow using VBA

6. USING VBA WITH office97 and powerpoint

7. path of a vba program saved under word97-2000

8. Set the DatabaseName Property using no path

9. Problem using GetPrivateProfile to set current path

10. Set Database Name property using no path

11. Setting default export path using Crystal32.ocx

12. Set Database name using no path

 

 
Powered by phpBB® Forum Software