F
Fred Smith
I have a cell with the following data:
144.049S
The S means the number should be subtracted, so I want to turn it into a
negative value. My code is:
If Right(Cell.Offset(0, 8), 1) = "S" Then Cell.Offset(0, 8) = _
0 - Left(Cell.Offset(0, 8), Len(Cell.Offset(0, 8) - 1))
But I keep getting a type mismatch.
What am I doing wrong?
144.049S
The S means the number should be subtracted, so I want to turn it into a
negative value. My code is:
If Right(Cell.Offset(0, 8), 1) = "S" Then Cell.Offset(0, 8) = _
0 - Left(Cell.Offset(0, 8), Len(Cell.Offset(0, 8) - 1))
But I keep getting a type mismatch.
What am I doing wrong?