Frame scrolling question.

MPW

Well-known Member
Joined
Oct 7, 2009
Messages
571
Office Version
  1. 365
Platform
  1. Windows
Hey All,

Using Office 2003.

I have 2 Parallel frames.
One has a vertical scroll bar, the other acts as a heading for the 1st frame.

I have been trying to have the heading frame scroll in conjunction with the other frame when it is scrolled.

I tried this to no avail:
Code:
Private Sub Frame1_Scroll(ByVal ActionX As MSForms.fmScrollAction, ByVal ActionY As MSForms.fmScrollAction, ByVal RequestDx As Single, ByVal RequestDy As Single, ByVal ActualDx As MSForms.ReturnSingle, ByVal ActualDy As MSForms.ReturnSingle)
    UserForm1.Frame2.ScrollLeft = UserForm1.Frame1.ScrollLeft
End Sub
I do not know if I am using ScrollLeft correctly. It might have a whole other purpose then what I am using it for.

Any ideas?

Thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I have adjusted the ScrollWidth and the Width of my heading frame and it now scroll in sync withe the other frame. However, I did notice some drifting if I move it back and forth a few times. It is a little floaty but unless anyone has a better way to do this I am forced to use it as it is.
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,003
Members
449,414
Latest member
sameri

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