Home |
Search |
Today's Posts |
#3
![]() |
|||
|
|||
![]()
Try inserting a "Do Events" line before Application.Run.
If it runs 6 times and then dies, the computer may simply need a second to catch up with executing code. Worth a try. HTH, -- George Nicholson Remove 'Junk' from return address. "gearoi" wrote in message ... I have this bit of code which messes up every now and then, but not all the time at all - I'll try anything to make it work!!! :) Application.Run "WorkInProgress.xls!Sheet7.CommandButton1_Clic k" (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 200 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 VBA shortcoming and I was wondering if anyone has a workaround? Thanks in advance, Graham. PS using Excel 2000 -- gearoi ------------------------------------------------------------------------ gearoi's Profile: http://www.excelforum.com/member.php...o&userid=26576 View this thread: http://www.excelforum.com/showthread...hreadid=436808 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data Range Mess | Charts and Charting in Excel | |||
Change case...help please | Excel Worksheet Functions | |||
relative sheet references ala sheet(-1)!B11 so I can copy a sheet. | Excel Discussion (Misc queries) | |||
how can i select all the cells with same color on a sheet if there are multipale colors by vba code | Charts and Charting in Excel | |||
Function to automatically insert a new sheet as a result of data entry? | Excel Worksheet Functions |