Friday, December 15, 2017

#1 2017-11-07 02:36:34 am

grahamsims
Member
Registered: 2012-10-16
Posts: 7

Applescript to move to next slide in normal view in PowerPoint

Am trying to write an Applescript which will move to the next slide when editing slides in Normal view in Powerpoint. Have searched in vain, and cannot get 'go to next slide' to work. Anybody able to help?


Filed under: Powerpoint, next slide

Offline

 

#2 2017-11-08 06:50:44 pm

haolesurferdude
Member
Registered: 2010-02-19
Posts: 109

Re: Applescript to move to next slide in normal view in PowerPoint

go to next slide

only works in slide show view.  The following will work in normal view.  It assumes that one slide is selected in normal view.

Applescript:


tell application "Microsoft PowerPoint"
   activate
   set theView to view of document window 1
   my goToNextSlide(theView)
end tell

on goToNextSlide(theView)
   tell application "Microsoft PowerPoint"
       activate
       set curSlide to slide index of slide range of selection of document window 1
       go to slide theView number (curSlide + 1)
   end tell
end goToNextSlide

Offline

 

#3 2017-11-14 01:40:48 pm

grahamsims
Member
Registered: 2012-10-16
Posts: 7

Re: Applescript to move to next slide in normal view in PowerPoint

Thank you so much. I would never have arrived at that without your help. Really appreciated you spending the time to respond.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)