PowerPoint Object Library

C

Charlie

I am using the PowerPoint Object Library with the following VB code:
Set oPPTApp = New PowerPoint.Application
oPPTApp.Visible = True
oPPTApp.WindowState = ppWindowMinimized
Set oPPTPres = oPPTApp.Presentations.Open(sPresentationFile)

How can I prevent PowerPoint to load? Or show in the taskbar?
 
C

Chirag

Change those 4 lines to the following 2 lines:

Set oPPTApp = New PowerPoint.Application
Set oPPTPres = oPPTApp.Presentations.Open(sPresentationFile,
WithWindow:=False)

This will get you a reference to the presentation object without it showing
anywhere on the title bar.

- Chirag

Shortcut Manager - Assign keyboard shortcuts to menu items and macros
http://officeone.mvps.org/ppsctmgr/ppsctmgr.html
 
C

Charlie

Thanks

Chirag said:
Change those 4 lines to the following 2 lines:

Set oPPTApp = New PowerPoint.Application
Set oPPTPres = oPPTApp.Presentations.Open(sPresentationFile,
WithWindow:=False)

This will get you a reference to the presentation object without it
showing anywhere on the title bar.

- Chirag

Shortcut Manager - Assign keyboard shortcuts to menu items and macros
http://officeone.mvps.org/ppsctmgr/ppsctmgr.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top