JazzSP8
Well-known Member
- Joined
- Sep 30, 2005
- Messages
- 1,233
- Office Version
- 365
- Platform
- Windows
Hi All
Hopefully something quick, I want to convert a text value to a number value in VBA so that something listed as '01' will convert to '1'
So, if in A1 I had '0123ABC' I could extract that with =VALUE(LEFT(A1,2)) to give me a 1
What do I need to add to this to make it do the same?
Thanks
Hopefully something quick, I want to convert a text value to a number value in VBA so that something listed as '01' will convert to '1'
So, if in A1 I had '0123ABC' I could extract that with =VALUE(LEFT(A1,2)) to give me a 1
What do I need to add to this to make it do the same?
Code:
VOUCHERDATE = Left(cell.Range("A1"), 2)
Last edited: