T
Trigger
I'm hoping this is possible in Powerpoint:
I'm running a VBscript multiple times concurrently to merge .ppt files
together into new presentations. I've got it running ok up to a
point, but because Powerpoint is a single instance application, all
these scripts need to keep track of which new/blank presentations they
idividually create (i.e. is it supposed to be writing to presentation1
or presentation2 etc.), otherwise they all just end up merging their
files into the active presentation.
Basically I need to get the index number of a new presentation
("currentPresentation") right after it is created:
Dim currentPresentation
PPTobj.Presentations.Add(True)
...insert method for --> currentPresentation = index of new
presentation
PPTobj.Presentations(currentPresentation).Slides.InsertFromFile
"somefile.ppt", 0
If anyone could help me out with this I would greatly appreciate it!
- Tristan
I'm running a VBscript multiple times concurrently to merge .ppt files
together into new presentations. I've got it running ok up to a
point, but because Powerpoint is a single instance application, all
these scripts need to keep track of which new/blank presentations they
idividually create (i.e. is it supposed to be writing to presentation1
or presentation2 etc.), otherwise they all just end up merging their
files into the active presentation.
Basically I need to get the index number of a new presentation
("currentPresentation") right after it is created:
Dim currentPresentation
PPTobj.Presentations.Add(True)
...insert method for --> currentPresentation = index of new
presentation
PPTobj.Presentations(currentPresentation).Slides.InsertFromFile
"somefile.ppt", 0
If anyone could help me out with this I would greatly appreciate it!
- Tristan