Solved

Excel VBA 2007:  Modify code for scrolling feature for all listboxes in spreadsheet

Posted on 2011-02-20
14
265 Views
Last Modified: 2012-05-11
Experts,

I was able to get a scrolling feature with the mouse over my listbox1.  However, I have 2 more listbox that are named 2 and 3 which are not coded to work.  The code is definitely beyond skill level.  If I can have someone review the coding to have all 3 of the listboxes work like listbox1, I would be so grateful. NOC-Reports-r23.xlsm
0
Comment
Question by:Maliki Hassani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
14 Comments
 
LVL 42

Expert Comment

by:dlmille
ID: 34939082
In the Executive Rollup, I've created hooks for LB2 and LB3 - let me know if they work.  That same code should be able to be used for your other summary charts.

See attached documentation (lance.txt) on this and some housekeeping items.

Dave
NOC-Reports-r23.xlsm
LANCE.txt
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34939091
>>let me know if they work.

What I meant to say (they work for me) - let me know if they work for you.  I had to re-create a couple listboxes as they stopped working properly, sorry if my font/other display setting is off :)

dave
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34939094
PS - you might want to pull the .txt file into a word document.

dave
0
Increase your protection from Zero Day threats!

Running two Antivirus' is never a good idea.
Taking advantage of Multiple Security layers on the other hand can often save your hide.
See which top notch security software brands have been proven to happily coexist together.
Reduce your chances of becoming a statistic.

 

Author Comment

by:Maliki Hassani
ID: 34939105
Issue:  It scrolls but now it doesn't allow me to click in the listboxes.  I may need to strip your code and insert it into my newest file.  I did that yesterday night and everything worked.
0
 

Author Comment

by:Maliki Hassani
ID: 34939118
Working on answering your questions...
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34939129
Yes - I had that andn had to delete the listboxes and recreate them.  I think if you just pull the code you'll be just fine...
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34939145
I'm doing that now - hang...

Dave
0
 

Author Comment

by:Maliki Hassani
ID: 34939193
Please see attached file with comments..
LANCE-COMMENTS.txt
0
 
LVL 42

Accepted Solution

by:
dlmille earned 500 total points
ID: 34939202
I've re-integrated the code with your latest version, had to regenerate the primary listboxes in.  Let me know if it functions properly.

Dave
NOC-Reports-r24.xlsm
0
 

Author Comment

by:Maliki Hassani
ID: 34939208
Sa-Weet .. checking now!
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34939224
When you get to a stable place, let's work the Application.EnableCancelKey = xlDisabled into all the right places.  I'm thinking of a clever way to do that.  But don't think we should dink with that until stabilized, as its a documented problem with a documented "fix" - short of putting this command at the top of each macro, I'm thinking on a better solution...

Dave
0
 

Author Comment

by:Maliki Hassani
ID: 34939228
Oh yeah!  Works like a charm!!  I don't see where I should have anymore issues with pertaining to this question.  It should only be a matter of taking the ListBox_MouseMove  1-3 into the rest of the sheets to function properly.  I will wait for you to respond before I close out. :)
0
 

Author Comment

by:Maliki Hassani
ID: 34939231
Okay, makes sense!
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34939233
Sounds good.

Dave
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question