TheWennerWoman
Active Member
- Joined
- Aug 1, 2019
- Messages
- 303
- Office Version
- 365
- Platform
- Windows
I have this
xTax is dimmed as Double as it is monetary (i.e $2.33 etc).
In the source, column K is a formula that will either show a monetary value (i.e $2.33) or "".
My VBA is falling over with type mismatch when it encounters the "". How can I get around it?
I've tried all sorts - I was sure
would do the job but it doesn't.
Any pointers appreciated.
VBA Code:
xTax = Sheet4.Range("K" & x).Value ' claim tax
xTax is dimmed as Double as it is monetary (i.e $2.33 etc).
In the source, column K is a formula that will either show a monetary value (i.e $2.33) or "".
My VBA is falling over with type mismatch when it encounters the "". How can I get around it?
I've tried all sorts - I was sure
VBA Code:
If Len(xTax) = 0 Then
xTax = 0
End If
Any pointers appreciated.