Auto Scroll within a Userform Page

r66eay

New Member
Joined
Jul 1, 2010
Messages
14
I have a Userform that allows the user to click an item description which then automatically selects a different page - that bit was easy.

When the page is selected I want to effectively automatically scroll down to a specified point in the page. I am pretty sure it will have something to do with the value of ScrollTop but don't know how to code this.

So, following my code of 'MultiPage1.Value = 3' I then want the user to view the page such that ScrollTop Value = 1350

How do I do this?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

r66eay

New Member
Joined
Jul 1, 2010
Messages
14
Have I asked a question with such an obvious answer that no-one has replied or is what I asked not possible?

When clicking a label in one page the user to redirected to another page but I want the user to view the page in such a way as the ScrollTop value is what I specify it to be, i.e. as if the user had scrolled down to that position.

Thanks
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Try:

Code:
Private Sub MultiPage1_Change()
    If MultiPage1.Value = 3 Then
        Me.ScrollTop = 1350
    Else
        Me.ScrollTop = 0
    End If
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,133,323
Messages
5,658,152
Members
418,430
Latest member
Kizega

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top