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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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
 
Upvote 0
Try:

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

Forum statistics

Threads
1,218,595
Messages
6,143,386
Members
450,484
Latest member
ChrisMac1

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
Back
Top