OfficeTips Home || VBA Section || General Section || Download Section || Privacy Policy |
How to display 'Open/Save As' dialogs in PowerPoint |
|
The official statement is that dialogs are not supported in PowerPoint object model. However this snippet shows that the dialog exists however the object is hidden. Paste the example into a module and run the OpenDialog routine, this will open the 'Open' dialog of PowerPoint and if when you select a file the dialog reference is passed to the handler 'ProcessSelection'. ProcessSelection merely determines the file that was selected and opens it. Note: This code is unsupported by Microsoft. This snippet will not function in XP. It is meant specifically for PowerPoint 97/2000 only. '
-------------------------------------------------------------------------------- Sub OpenDialog()
|
|
The official statement is that dialogs are not supported in PowerPoint object model. However this snippet shows that the dialog exists however the object is hidden. Paste the example into a module and run the SaveAsDialog routine, this will open the 'Save As' dialog of PowerPoint and if when you select a file the dialog reference is passed to the handler 'ProcessSelection'. ProcessSelection merely determines the filename that was provided and displayes it in a message box. Note: This code is unsupported by Microsoft. This snippet will not function in XP. It is meant specifically for PowerPoint 97/2000 only. '
-------------------------------------------------------------------------------- Sub SaveAsDialog()
|
Copyright 1999-2018 (c) Shyam Pillai. All rights reserved.