Rowane
New Member
- Joined
- Sep 25, 2015
- Messages
- 15
Hi all
I am a newbie in this. I have copied a code to increase my delivery order value in Cell C5 which time i click a control button. Code is as follows:-
Dim num As Integer
Range("C5").Select
num = Range("C5").Value
num = num + 1
Range("C5").Value = num
End Sub
If the number of the C5 is 5 digits, no problem for the value to increase. But my DO number is eg. 1500983, I encountered "Overflow (Error 6)" message and when i clicked on "Debug", "num = Range("C5").Value" is highlighted.
I have no idea how to solve this issue. Would greatly appreciate if anyone could help me with this error.
I am a newbie in this. I have copied a code to increase my delivery order value in Cell C5 which time i click a control button. Code is as follows:-
Dim num As Integer
Range("C5").Select
num = Range("C5").Value
num = num + 1
Range("C5").Value = num
End Sub
If the number of the C5 is 5 digits, no problem for the value to increase. But my DO number is eg. 1500983, I encountered "Overflow (Error 6)" message and when i clicked on "Debug", "num = Range("C5").Value" is highlighted.
I have no idea how to solve this issue. Would greatly appreciate if anyone could help me with this error.