hi,
I am extracting numbers from a text file.
Below is the code.
Dim sValue as string
Dim dTotal as double
sValue = Mid(StringLine, 35, 9)
dTotal = sValue
' At dTotal it gives Error Type mismatch
' value in dTotal to be as -38234
sNumber has value as "000-38234"
How do I solve this problem ?
Thanks,
Cap
I am extracting numbers from a text file.
Below is the code.
Dim sValue as string
Dim dTotal as double
sValue = Mid(StringLine, 35, 9)
dTotal = sValue
' At dTotal it gives Error Type mismatch
' value in dTotal to be as -38234
sNumber has value as "000-38234"
How do I solve this problem ?
Thanks,
Cap