Intercepting PPT commands

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Hi - I am a newbie to PPT programming, but I know Word VBA very well.
In PPT, can you - as with Word - run a macro in place of a command???

eg in Word

Sub FileSaveAs
'Runs in place of File | Save As
End Sub

There doesn't seem to be a way of seeing the built-in commands like there is
in Word - are they documented anywhere???.

One simple thing I'd like to do is have the Insert Slides dialog open a
particular ppt file (or even have the browse dialog open at a particular
folder), but since you can't access PPT dialogs with VBA, there appears to
be no way to do this.

I'm stumped! Any help much appreciated.

Michael
 
Hi - I am a newbie to PPT programming, but I know Word VBA very well.
In PPT, can you - as with Word - run a macro in place of a command???

Unfortunately, no.

You can remove the existing command from the toolbar and menu, then add your
own buttons and menu items back in its place, though.
There doesn't seem to be a way of seeing the built-in commands like there is
in Word - are they documented anywhere???.

One simple thing I'd like to do is have the Insert Slides dialog open a
particular ppt file (or even have the browse dialog open at a particular
folder), but since you can't access PPT dialogs with VBA, there appears to
be no way to do this.

Try searching this newsgroup for posts by Shyam Pillai. I think he may have
posted a way of doing something like this a while back.
 
Back
Top