Hide Rows

C

courtesio99

Can anyone help me with the following problem?

I have a drop down list, e.g. with 4 options.
each option is represented by a row of data, and each cell in each row
is to be entered by the user. (That means I have 4 rows of data.)

How do I unhide a certain row that is selected via the drop down list
whilst hiding the rest of the 3 rows?
 
C

curllion

At first ,u must lock the size and location of the listbox1,then add the
code to the model:

Private Sub ListBox1_Change()
For i = 0 To ListBox1.ListCount - 1
Rows(i + 1).Hidden = ListBox1.Selected(i)
Next
End Sub


courtesio99 said:
Can anyone help me with the following problem?

I have a drop down list, e.g. with 4 options.
each option is represented by a row of data, and each cell in each row
is to be entered by the user. (That means I have 4 rows of data.)

How do I unhide a certain row that is selected via the drop down list
whilst hiding the rest of the 3 rows?
creating financial statements
 
S

Stephen Bye

Use Data > Filter > Autofilter

courtesio99 said:
Can anyone help me with the following problem?

I have a drop down list, e.g. with 4 options.
each option is represented by a row of data, and each cell in each row
is to be entered by the user. (That means I have 4 rows of data.)

How do I unhide a certain row that is selected via the drop down list
whilst hiding the rest of the 3 rows?
creating financial statements
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top