Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syncing Two Horizontal ListBox ScrollBars in Excel 1

Status
Not open for further replies.

Westy73

Programmer
Jan 20, 2004
2
AU
Hi,

I have a form in an Excel application that contains two(2) listboxes. Both listboxes are the same width, have the same number of columns and column widths and both have horizontal scrollbars.

Is there anyway, to sync the horizontal scrolling so that moving one(1) of the horizontal scrollbars actually controls the horizontal movement of both list boxes?

Thanks.
 
Hi Westy73,

The short answer is No. VBA does not provide any hooks into listbox scrolling - you can neither tell when it happens nor make it happen.

Enjoy,
Tony

------------------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading FAQ222-2244 before you ask a question.
 
I suspected as much.
Thanks for your help Tony.
 
If sync is important, why not create a single double-wide listbox with two grouped columns of data?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top