« Create watermarks and backgrounds easily with the Microsoft Office 2003 Editions | Main | Response to Word VBA Question: Replacing text with hyperlinks »
Hi, everyone! While I was away, people sent questions on a couple of different macro topics -- one Word and one PowerPoint. Thought the answers might come in handy for others - so I'll be posting them. For starters ... here's the PowerPoint question:
When you insert a slide into a presentation programmatically, PowerPoint doesn't advance your view automatically to the new slide. How do you do that?
Well, there's rarely just one answer to 'how do you do that' in VBA ... but here's how I do it:
Just create an integer variable and define it as being equal to the active view plus 1, like so:
Dim mySl As Integer
mySl=ActiveWindow.Selection.SlideRange.SlideIndex + 1
Then, after the line where you insert the new slide, use the GoToSlide method to get where you want to be:
ActiveWindow.View.GotoSlide Index:=mySl
The Word issue is quite interesting - so check back - I'll post that one as soon as I get a bit more information from the requestor about what she needs :)
Meanwhile, happy Thursday!
Posted by Stephanie
TrackBack URL for this entry:
http://www.arouet.net/cgi-bin/mt/mt-tb.cgi/114
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)
Comments
Sir/Madam,
After embedding a Flash movie on a Powerpoint slide, I want to go to next slide
using an invisible action button. The flash movie seems to cover the buton whenever I try to click it in the final presentation.
please reply the solution if any?
with regards,
A.C.Sarath
Posted by: sarat | December 9, 2005 08:57 AM
Hi,
I'm wondering why you want an invisible action button? Have you tried just using a mouse click or the page down key to advance to the next slide?
You can also set up automatic timing on the slide so that it advances automatically as soon as the flash movie ends or at any point when you want it to ...
To automatically advance the slide after a set amount of time, on the Slide Show menu click Slide Transition to open the Slide Transition task pane. You'll see the option to advance the slide automatically toward the bottom of that task pane.
If none of these options solve the issue for you -- please provide more information on the problem you're experiencing and your reason for needing the action button.
Hope this helps -
Steph
Posted by: Stephanie | December 9, 2005 11:33 AM