Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / August 2007

Tip: Looking for answers? Try searching our database.

Excel: Scroll Evnt

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
g.haarish@gmail.com - 25 Aug 2007 10:39 GMT
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.
Chip Pearson - 25 Aug 2007 13:08 GMT
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.

Signature

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

> Hi All,
>
[quoted text clipped - 6 lines]
> Many Thanks,
> Haarish.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.