Com Office Objects

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

1. Where can I find out what all the parameters mean in
Word, Excel and PowerPoint Open() methods. I can create
Office objects I just don't know what kind of object I'm
creating.

2. The following opens ppt in slideshow wiew. How can I
open ppt in Normal view?

pres = pptApp.Presentations.Open(fou, F, T, T);
pptApp.Activate();
PowerPoint.SlideShowWindow slideShow =
pres.SlideShowSettings.Run();
slideShow.View.First();
 
Steve said:
1. Where can I find out what all the parameters mean in
Word, Excel and PowerPoint Open() methods. I can create
Office objects I just don't know what kind of object I'm
creating.

This should be in the online help for these apps. You must make sure,
though, that you installed the developer help files when you installed
Office. If not, you'll need to modify your installation.

2. The following opens ppt in slideshow wiew. How can I
open ppt in Normal view?

pres = pptApp.Presentations.Open(fou, F, T, T);
pptApp.Activate();
PowerPoint.SlideShowWindow slideShow =
pres.SlideShowSettings.Run();
slideShow.View.First();

Sorry. Dunno.

eb
 
If I were to guess (I've mostly done XL VBA, only a little PP automated from
XL) it looks like your third and fourth statements are what put it in
slideshow mode and set it to slide 1. Use only the first two lines and test
to see if it opens in the PP default mode.
 
Your correct, through somemore research I've found the Run() puts in
slideshow mode (view).

Steve
 
Back
Top