Current Slide-number ..?

  • Thread starter Thread starter Olaf Rabbachin
  • Start date Start date
O

Olaf Rabbachin

Hi *.*,

I am trying to create a new slide (from VB6-code) within the active
presentation. The new slide is to be inserted before the slide currently
being shown.

I can't find any property like i.e. ActivePresentation.ActiveSlide, the
only way I found to retrieve that would be during a slideshow, but the
presentation will be in design-mode.

Any suggestions ..?

TIA!

Cheers,
Olaf
 
Hi,

I am trying to create a new slide (from VB6-code) within the active
presentation. The new slide is to be inserted before the slide currently
being shown.

I can't find any property like i.e. ActivePresentation.ActiveSlide, the
only way I found to retrieve that would be during a slideshow, but the
presentation will be in design-mode.

alright, thanks to www.rdpslides.com/pptfaq/FAQ00271.htm I finally did find
a way of retrieving the currently active slide.

But if, rather than the cursor being on the slide, I simply click the
slide-sorter I'll get a runtime-error "View (unknown member): Invalid
request. No slide is currently in view"). Any way to work around that?

Cheers,
Olaf
 
Hi,

alright, thanks to www.rdpslides.com/pptfaq/FAQ00271.htm I finally did find
a way of retrieving the currently active slide.

But if, rather than the cursor being on the slide, I simply click the
slide-sorter I'll get a runtime-error "View (unknown member): Invalid
request. No slide is currently in view"). Any way to work around that?

Geez, I keep talking to myself!
Well, the solution's there, so if there's anybody with the same problem,
see www.mvps.org/skp/ppt00044.htm!

Cheers,
Olaf
 
Hi,

Look at http://www.mvps.org/chirag/vba.html - look for GetActiveSlide().

alas, somebody to talk to! ;-)

Thanks for the link!

I'll rather stay with the other one (see other post) which is a bit more
flexible though. The only thing Shyam (the author) forgot was to erase the
PP-object ("Set oPres = Nothing" after err-handler), but that's a common
thing on quite a few samples on the MVP-websites (might include me as
well :-) ...

Cheers,
Olaf
 
Back
Top