Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a sheet in my spreadsheet which contains employee data. Each
row of data represents an employee, and there is a header line. I want to use an advanced filter to determine the employees for whom the Tech No (column 4) is either blank or equal to "0000". Data begins on row 9 as there are headers on the page. The Tech No is a text field as there could be leading zeroes in the number. I am using the following code to determine the range of data for which I want to set the criteria (D9 through end of records). How do I set an advanced filter to select the rows in which column 4 is either blank or equal to "0000"? Once I have the filter set, I will be copying all the rows meeting the criteria to another sheet in the workbook. Any help would be appreciated. Connie Private Sub Filter_Employee_Data_Click() Dim sh As Worksheet Dim rng As Range Set sh = Worksheets("Compiled Totals") sh.Select Set rng = sh.Range(sh.Cells(9, "D"), _ sh.Cells(sh.Rows.Count, "D").End(xlUp)) Sheets("Compiled Totals").Range(rng.Address).Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
consolidation of tables in excel with text and figures | Excel Worksheet Functions | |||
ranking query | Excel Discussion (Misc queries) | |||
Inserting a new line when external data changes | Excel Discussion (Misc queries) | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) | |||
data range props | Excel Discussion (Misc queries) |