G
gearoi
I have this bit of code which messes up every now and then, but not al
the time at all - I'll try anything to make it work!!!
Application.Run "WorkInProgress.xls!Sheet7.CommandButton1_Click"
(Have also tried
Sheet7.commandButton1_Click
and
call xxx with both of the above)
And it works MOST of the time - ie it tends to run about 6 of the 20
of these things that I'm doing then it stops. Then it falls over with:
"Method "Run" of object "Application" error (or similar).
Basically it crashes and stops....
But I need it to run through hundreds of times. This is a clear VB
shortcoming and I was wondering if anyone has a workaround?
Thanks in advance,
Graham.
PS using Excel 200
the time at all - I'll try anything to make it work!!!
Application.Run "WorkInProgress.xls!Sheet7.CommandButton1_Click"
(Have also tried
Sheet7.commandButton1_Click
and
call xxx with both of the above)
And it works MOST of the time - ie it tends to run about 6 of the 20
of these things that I'm doing then it stops. Then it falls over with:
"Method "Run" of object "Application" error (or similar).
Basically it crashes and stops....
But I need it to run through hundreds of times. This is a clear VB
shortcoming and I was wondering if anyone has a workaround?
Thanks in advance,
Graham.
PS using Excel 200