Greetings,
I have tried numerous options and searched for a solution, but to no avail. I'd be very grateful for any help...
I have a macro does many things but one small part fails;
I have column H formatted as Currency.
I have a variable (AmountSought) dimmed as Currency
The macro filters on Column H for AmountSought.
It will, however, only find positive numbers. So, if the amount sought is £5,000, it won't find -£5,000.
I have been trying;
ActiveSheet.Range("A:M").AutoFilter Field:=10, Criteria1:=AmountSought, _
Operator:=xlOr, Criteria2:=AmountSought2
where AmountSought2 = 0 - AmountSought
I have stopped the macro there and the custom filter is looking for ($5,000.00)
Can anyone suggest how I could treat the variable or Filter differently so that it'll find 5000 And -5000?
Many thanks
Mark
I have tried numerous options and searched for a solution, but to no avail. I'd be very grateful for any help...
I have a macro does many things but one small part fails;
I have column H formatted as Currency.
I have a variable (AmountSought) dimmed as Currency
The macro filters on Column H for AmountSought.
It will, however, only find positive numbers. So, if the amount sought is £5,000, it won't find -£5,000.
I have been trying;
ActiveSheet.Range("A:M").AutoFilter Field:=10, Criteria1:=AmountSought, _
Operator:=xlOr, Criteria2:=AmountSought2
where AmountSought2 = 0 - AmountSought
I have stopped the macro there and the custom filter is looking for ($5,000.00)
Can anyone suggest how I could treat the variable or Filter differently so that it'll find 5000 And -5000?
Many thanks
Mark