#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Excel: Scroll Evnt

Hi All,

Will the scroll (Horiz, Vert) bars generate an event that can be
handled with a user defined macro? I have problems with freeze panes
on using the horiz scroll bar. A dropdown list on the freeze pane is
displaced from its original location on paging to the right using the
scroll bar and eventually loses its funtionality. Any ideas?

Many Thanks,
Haarish.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Excel: Scroll Evnt

Haarish,

There is no event that is triggered when you scroll in a window. You can use
a technique called "subclassing" to detect the Windows messages sent during
scrolling. VBA doesn't have the performance horsepower to do the actual
subclassing itself, so I use a free DLL from vbAccellerator,
www.vbaccellerator.com, called SSubTimer6.dll. Once you have that DLL on
your machine, you can use the class module on my web site to detect
scrolling. The class will raise normal VBA events for scrolling up/down
left/right by page/line.

See http://www.cpearson.cm/Excel/DetectScroll.htm details and downloadable
example workbook.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


wrote in message
oups.com...
Hi All,

Will the scroll (Horiz, Vert) bars generate an event that can be
handled with a user defined macro? I have problems with freeze panes
on using the horiz scroll bar. A dropdown list on the freeze pane is
displaced from its original location on paging to the right using the
scroll bar and eventually loses its funtionality. Any ideas?

Many Thanks,
Haarish.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scroll bar (control) doesn't scroll!! ??? worksfire1 Excel Worksheet Functions 2 June 28th 07 02:18 PM
Scroll bar control doesn't scroll !! ??? worksfire1 Setting up and Configuration of Excel 0 June 27th 07 07:52 PM
adding scroll bar to scroll on cell's content? Rotem Charts and Charting in Excel 0 November 16th 06 12:36 PM
Scroll horizontaly with mouse, create same system used to scroll . frederic New Users to Excel 5 October 9th 05 08:15 PM
Scroll the screen view with the scroll bar avbs Excel Discussion (Misc queries) 1 June 25th 05 04:43 PM


All times are GMT +1. The time now is 10:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"