Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
2003
Procedure obtains a numeric value (NumbToReplace) from an input box. The typical worksheet column format is: NumberFormat = "#,##0.00_);(#,##0.00)" 'Number with 2 Dec Places But the same column on other worksheets have format of: NumberFormat = "#,##0.00000_);(#,##0.00000)" 'Number with 5 I format NumbToReplace as follows: FilterCriteria = WorksheetFunction.Text(NumbToReplace, _ "#,##0.00_);(#,##0.00)") Then I set the filter: Filter1.AutoFilter Field:=4, Criteria1:="=" & FilterCriteria The challenge: How to format "NumbToReplace" which becomes "FilterCriteria" so that the filter is set properly no matter how many decimal places the worksheet column has? I am having a can't-see-the-forest-for-the-trees-moment even though the answer is probably staring me right in the face.. TIA EagleOne |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional formatting to highlight the lowest valid value | Excel Worksheet Functions | |||
can I use a cell content as a Criteria1 reference in the below Selection.AutoFilter statement? | Excel Programming | |||
Pivot Table not valid error message when formatting data 'button'. | Excel Discussion (Misc queries) | |||
for...next and criteria1 | Excel Programming | |||
Auto Filter and Criteria1 variable | Excel Programming |