Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
My problem is that i have a worksheet with a number of text columns; i wish
to search one of the colomns (colomn H) and filter (the entire row) in results. I know i can use a filter; but for ease of use with non excel litterate people i would like to use a macro where they need to enter the criteria into a cell; and link the search criteria to that cell such as (H14). Your help is much appreciated |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Instead of them typing into a cell you could use an InputBox
Option Compare Text Sub Filter_Stuff() Dim whatwant As String whatwant = InputBox("Enter criteria.") Range("H1").Select With ActiveSheet.UsedRange Selection.AutoFilter Selection.AutoFilter Field:=1, _ Criteria1:=whatwant, Operator:=xlAnd End With End Sub Assign to a button for users to to click on. Gord Dibben MS Excel MVP On Thu, 15 Nov 2007 16:14:00 -0800, SearchandDeliver wrote: My problem is that i have a worksheet with a number of text columns; i wish to search one of the colomns (colomn H) and filter (the entire row) in results. I know i can use a filter; but for ease of use with non excel litterate people i would like to use a macro where they need to enter the criteria into a cell; and link the search criteria to that cell such as (H14). Your help is much appreciated |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Missing Help Search Results Window | Excel Discussion (Misc queries) | |||
Why won't advanced filter return filter results? | Excel Worksheet Functions | |||
Can you search for common results in many wrksheets? | Excel Worksheet Functions | |||
How can I view multiple search results? | Excel Discussion (Misc queries) | |||
Print the results of a search | Excel Discussion (Misc queries) |