Mr Retirement
New Member
- Joined
- Nov 12, 2016
- Messages
- 46
Hello -
I am trying to use vba to determine if one cell equals a piece of another cell. My issue is that the 'piece' of the cell (using a Right formula) is registering as text whereas the other cell is a numeric value. I can solve this by using Numbervalue function but I don't know how to replicate this in VBA.
Any help would be great!
Thanks,
Mr R
I am trying to use vba to determine if one cell equals a piece of another cell. My issue is that the 'piece' of the cell (using a Right formula) is registering as text whereas the other cell is a numeric value. I can solve this by using Numbervalue function but I don't know how to replicate this in VBA.
Code:
Cells(5, i).Value = Right(Sheets("FindTab").Cells(1, y), 5)
Any help would be great!
Thanks,
Mr R