Presentations.count in VBA returns false number

E

elbyc

Hi,
I'm using PowerPoint 2003 with VBA to open a file, copy two slides
from it and paste them into another file. Before I start, I check to
see if any other files are open in PowerPoint using
"Presentations.count".

For some reason, it's starting to show that there is a presentation
open, but it is not visible. There are no extra instances of
PowerPoint.exe in the task manager (I've closed out and restarted).
Any ideas why this number would be too large?
 
C

Chirag

Call the NewWindow() method to get the presentation to show. So, if you
close all presentations and you still see Presentations.Count as 1, call
Presentations(1).NewWindow to show the presentation.

Note that add-ins may open new presentations temporarily for some of the
tasks.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
E

elbyc

Quit PPT.

Use Task Manager to ensure that there are no remaining POWERPNT.EXE
processes; shut down any that are running.

Restart PPT.  Does the extra presentation disappear?

==============================
PPT Frequently Asked Questionshttp://www.pptfaq.com/

PPTools add-ins for PowerPointhttp://www.pptools.com/

It didn't disappear yesterday when I ensured there were now instances
of PowerPoint in my Processes, but I then didn't reboot until last
night. This morning it is runnig smoothly. Thanks Chirag for the tip -
I'll use it next time this mystery occurs.
 

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