Powerpoint 2010 - vba - Slide Object - webbrowser
-
Freitag, 20. April 2012 10:50
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!
Alle Antworten
-
Freitag, 20. April 2012 11:05
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
- Bearbeitet Greg B Roberts Freitag, 20. April 2012 11:06
- Als Antwort markiert Greg B Roberts Freitag, 20. April 2012 11:06
-
Montag, 23. April 2012 02:56Moderator
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

