Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I have a dropdown validation list. When I select an item from this list, the rows below will be populated using the HLOOKUP function. The HLOOKUP function brings the values from the other sheet. The records will be one to one thousand. And I have the formula upto 1000 rows. When item has just one value in it the other rows will have the value zero. I need to hide those rows which have the zero values. I could have use the Autofilter, but I need it when the item is selected from the dropdown list. So this could be done using VBA code. Please help Shail |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Not only are you posting the same thing over and over again you are posting
in several groups. Bad!! -- Don Guillett SalesAid Software "shail" wrote in message oups.com... Hi, I have a dropdown validation list. When I select an item from this list, the rows below will be populated using the HLOOKUP function. The HLOOKUP function brings the values from the other sheet. The records will be one to one thousand. And I have the formula upto 1000 rows. When item has just one value in it the other rows will have the value zero. I need to hide those rows which have the zero values. I could have use the Autofilter, but I need it when the item is selected from the dropdown list. So this could be done using VBA code. Please help Shail |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
To get the code for doing this, click tools-macro-record macro.
Basically, place your autofilter manually while recording the action. Then you can use that code. Here's an example of some code. You could use something like this. Columns("I:I").Select 'this places the autofilter on column I Selection.AutoFilter Selection.AutoFilter Field:=1, Criteria1:="<" & Range("B1").Value, Operator:=xlAnd ' line above assumes that the validation dropdown is in B1 Right-click on the worksheet tab that you will be using this on. Select 'View code'. In left dropdown, select 'Worksheet'. In right dropdown, select 'Change'. Then paste code. That should get you started. HTH, Paul "shail" wrote in message oups.com... Hi, I have a dropdown validation list. When I select an item from this list, the rows below will be populated using the HLOOKUP function. The HLOOKUP function brings the values from the other sheet. The records will be one to one thousand. And I have the formula upto 1000 rows. When item has just one value in it the other rows will have the value zero. I need to hide those rows which have the zero values. I could have use the Autofilter, but I need it when the item is selected from the dropdown list. So this could be done using VBA code. Please help Shail |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I invoke running a macro from within an "IF" function. | Excel Worksheet Functions | |||
Three tables on one worksheet, need to hide rows | Excel Discussion (Misc queries) | |||
macro to hide rows across several worksheets fails | Excel Discussion (Misc queries) | |||
macro to hide rows if cell is blank | Excel Worksheet Functions | |||
how to hide rows in a protected sheet | Excel Worksheet Functions |