Run-time error '6' : Overflow

Run-time error '6' : Overflow

Anonymous
Not applicable
417 Views
1 Reply
Message 1 of 2

Run-time error '6' : Overflow

Anonymous
Not applicable
Hi I have the following code and it's giving me the error: Run-time error '6' : Overflow in the line starting with LCCShell2. The strange thing is that it works when the commandbutton is clicked the first and second time, but not on the third time, when the error is given. After that (i.e. 4th time, 5th time etc) it also works (Note: the program still continues after error is given) . Does anyone have a clue of what may be the problem? Because I don't....thanks a lot.


Private Sub ViewLCCsCommandButton1_Click()
Dim LCCShell2 As String
Call AppendToABatchFile("C:\Users\AAAAAA\Desktop\CCCCCCC\LCCbatchfile2.bat", DrawingName & ".htm")
LCCShell2 = Shell("C:\Users\AAAAAA\Desktop\CCCCCCC\LCCbatchfile2.bat", vbMaximizedFocus)
End Sub Edited by: maltaCAD on Jan 27, 2010 12:52 PM
0 Likes
418 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Does someone know what might be the problem please? Thanks.
0 Likes