473,378 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Listbox (or Combobox) Problem

8
I am trying to filter on rows with a selected value from a listbox and when I step through the ComboBox2 code, it jumps to the ComboBox3 code from the third line (.EntireRow.Hidden = True). This happens when I use comboboxes or listboxes. Why does it jump to ComboBox3_Change? I have seen this happen when I have code in more than one listbox/combobox on a worksheet.

Private Sub ComboBox2_Change()
With Range("A10:N296")
.EntireRow.Hidden = True **** JUMPS TO ComboBox3_Change CODE
Range("A10:N296").EntireRow.Hidden = True
For Each cell In Range("B10:B296")
Select Case cell.Value
Case Is = Worksheets("sheet1").Range("A16").Value
cell.EntireRow.Hidden = False
End Select
Next cell
End With
End Sub

Private Sub ComboBox3_Change()

End Sub


I have filtered this way, but it still jumps to the code in ComboBox3_Change. It appears to be in a loop and eventually returns to ComboBox2_Change.

Private Sub ComboBox2_Change()
Range("A10:N296").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Sheets("Sheet1").Range("A15:A16"), Unique:=False
End Sub

Private Sub ComboBox3_Change()

End Sub
Mar 25 '08 #1
0 883

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: jdk | last post by:
I have a main form where a students name is selected. After selected the name- the subform populates all criteria related to the students program. I have 2 combo boxes in the subform that...
3
by: BVH | last post by:
Hi, I'm currently having a problem with a vb6 project I once wrote that needs to be converted to vb.NET. The problem is as follows : On a form I have a listbox and two commandbuttons. The 2...
11
by: Timo Kunze | last post by:
Hi! If you move the mouse over an item that's part of a treeview and wider than the treeview, a tooltip showing the full item text will be displayed. I try to do this for ListBoxes and...
1
by: ALexey Zalivin | last post by:
Hi, Anobody can help me to increase scrollbars in ListBox (wider for both scrollbars). I try to design applications specialy for touchscreen, but can't find any solutions in documentation. ...
1
by: amber | last post by:
I'm having an issue with a combobox that is making no sense to me at all. I have a form with several comboboxes/textboxes. The values in these boxes are based on a datarowview, which is based on...
7
by: samoore33 | last post by:
I am trying to dynamically add items to a listbox or combobox. The items add to either, but when I look through those items, there is nothing there. If I choose an item, it shows up. Not sure...
5
by: martin DH | last post by:
Hello, The details are below, but I have a simple form (Form1) with two objects and a "search" command button. When the two objects are cascading combo boxes (the form creates the parameters for a...
1
by: Rambaldi | last post by:
Hi there, I am adding items to a Listbox and a ComboBox and i would like to set their id's as a value so when i choose the attribute SelectedValue i can be able to get their ids. Someone can...
0
by: wotamelon | last post by:
Hi all, I am troubled by this problem, I'm new to ACCESS (last time i touched base on VBA codes was 5 or 6 yrs ago where I took Microsoft Visual Basics for beginners) Please help! My...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.