Rowane
New Member
- Joined
- Sep 25, 2015
- Messages
- 15
Would appreciate if someone out there could help...I am using the following code to increase my PO number.
My output should look like this - PO09-001/15 where PO09 is fixed and /15 is fixed. However when i run the macro, it turns out PO09-2/15 instead of PO09-002/15. Please help me correct the code. Thank you very much.
Dim i As Integer
Range("C5").Value = "PO09-" & Val(Mid(Range("C5"), 6, Len(Range("C5")) - 5)) + 1 & "/15"
My output should look like this - PO09-001/15 where PO09 is fixed and /15 is fixed. However when i run the macro, it turns out PO09-2/15 instead of PO09-002/15. Please help me correct the code. Thank you very much.
Dim i As Integer
Range("C5").Value = "PO09-" & Val(Mid(Range("C5"), 6, Len(Range("C5")) - 5)) + 1 & "/15"