VBA control vscroll and hscroll in a frame

G

gary

I need to be able to position the vertical and horizontal scroll bars in a
Fame object from VBA. I have searched the internet for an API or code o do
this without success. The only frame routine (scroll) doesn't seem to do
this. Any help would be appreciated.

Gary
 
K

Klaus Linke

Hi Gary,

Doesn't .ScrollIntoView work for this, if you set the Range to what you want
to have in view?

Greetings,
Klaus
 
G

gary

Klaus,

..Scrollintoview is new to me. From VBA help .scrollintoview is a method for
windows or panes. I need this to be associated with a frame that contains
the WebBrowser object that ultimately needs to be scrolled from VBA. I can't
say Frame1.WebBrowser1.scrollintoview left,top,width,height,start
 
K

Klaus Linke

.Scrollintoview is new to me. From VBA help .scrollintoview is a method
for
windows or panes. I need this to be associated with a frame that contains
the WebBrowser object that ultimately needs to be scrolled from VBA. I
can't
say Frame1.WebBrowser1.scrollintoview left,top,width,height,start


Try ActiveWindow -- or if that doesn't work, put your selection into Frame1
first and try again.
(I have never used frames, and just hope it works that way)

Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top