dancingcab
New Member
- Joined
- Nov 10, 2014
- Messages
- 14
Hi,
I'm fairly new to VBA so please forgive my lack of knowledge!
I'm trying to use the Match function but get a run-time error 1004. My code is as follows:
Sub CAAnalysis()
Worksheets(1).Activate
Start1 = Application.WorksheetFunction.Match(0.05, "$A:$A", 1)
Debug.Print Start1
End Sub
I know that the value 0.05 exists in column A. However, the actual value is 0.0499999998737621. I noticed that the Match function says As Double when I click the quick info button. Is the issue that the value is more than 15 decimal places?
Thanks!
I'm fairly new to VBA so please forgive my lack of knowledge!
I'm trying to use the Match function but get a run-time error 1004. My code is as follows:
Sub CAAnalysis()
Worksheets(1).Activate
Start1 = Application.WorksheetFunction.Match(0.05, "$A:$A", 1)
Debug.Print Start1
End Sub
I know that the value 0.05 exists in column A. However, the actual value is 0.0499999998737621. I noticed that the Match function says As Double when I click the quick info button. Is the issue that the value is more than 15 decimal places?
Thanks!