Powerpoint 2010 - vba - Slide Object - webbrowser
-
Friday, April 20, 2012 10:50 AM
This is a follow up question to http://social.msdn.microsoft.com/Forums/en-US/officegeneral/thread/da4e85ac-f220-4ac7-bd23-adccb25f9153
I establish i can sucessfully set the browser url in a slide by
slide6.WebBrowser1.Navigate (url)
The problem is this code needed the "slide6" to be hard coded. In the Slides object it can be referenced by oSlide.Name but this is the textual name, not the object itself.
>> I need a way to reference the slide6 object programmatically ? How is this done ?
I am using OnSlideShowPageChange() to fire every page change and i check if it is a browser page and set the url
Thanks!
All Replies
-
Friday, April 20, 2012 11:05 AM
OK I found a way and post for others, where oShape is the Shape within the slide object
Set theObject = oShape.OLEFormat.Object
theObject.Navigate (url)
theObject = NothingNote that the .WebBrowser1 needs to be dropped, which kind of makes sense because it IS the object.
Cheers
- Edited by Greg B Roberts Friday, April 20, 2012 11:06 AM
- Marked As Answer by Greg B Roberts Friday, April 20, 2012 11:06 AM
-
Monday, April 23, 2012 2:56 AMModerator
Hi Greg,
I'm glad to hear you have solved your issue. Thanks for sharing your experience here, it's very beneficial for other community members who have similar problem to see how you solve the issue.
Have a good day,
Tom
Tom Xu [MSFT]
MSDN Community Support | Feedback to us

