Powerpoint 2010 - vba - webbrowser object - Scroll control
-
יום שלישי 01 מאי 2012 13:42
Hi
Does anyone have any tips on how to scroll the webbrowser object in powerpoint 2010 ?
I have the window displaying fine, however i would like to automatically scroll the window down every 10s when the window is too long for the window (and is showing the scroll bar to the right)
Thanks
כל התגובות
-
יום רביעי 02 מאי 2012 04:19
Hi Greg,
As far as I known that WebBrowser control doesn't have such function.
Best Regards,
T.X.
- סומן כתשובה על-ידי Tom_Xu_WXModerator יום שני 07 מאי 2012 06:49
-
יום חמישי 03 מאי 2012 00:34
This seems to be the case, HOWEVER if you can click on the right hand side scroll bar, then a page down (via the vba sendkeys) will work.
Without the scroll bar being clicked / selected, a page down moves to the next page.
So a solution of sorts may be possible if i can select the scroll bar in VBA..
I will post the result if i find it.
On the VBA side there is
WebBrowser1.Document.Body.ScrollTop which should be able to do this, however either it does not allow itself to be set, or if it does, it does not change, e.g.WebBrowser1.Document.Body.ScrollTop = 1000
WebBrowser1.RefreshOnly refreshes the page.
- סומן כתשובה על-ידי Tom_Xu_WXModerator יום שני 07 מאי 2012 06:49
-
יום חמישי 03 מאי 2012 07:25מנחה דיון
Hi Greg,
Thanks for posting in the MSDN Forum.
What you shown seems only way for your issue.
Have a good day,
Tom
Tom Xu [MSFT]
MSDN Community Support | Feedback to us