Thank you both for the responses so far.
A few answers:
- The offending line is Selection.Delete Shift:=xlUp. It is in a procedure that has all of three lines:
Sheets("Raw").Select
Rows("2:1048576").Select
Selection.Delete Shift:=xlUp
I am using Excel 2010, so there are indeed 1048576 rows, though only the first few thousand are in use; it's a little lazier than finding the last in use row, but in theory, should work? Regardless, I tried a lower constant, 10000, and found the same problem.
I have no integers, only longs.
I am on a stable network. But the offending procedure does not have any db connection in it. But here is the connection string I use:
Global Const cnStr = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=raptorbeta;Data Source=SV1PSVM81;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Use Encryption for Data=False;Tag with column collation when possible=False"
I've attached the code sample from the offending module; apologies for the incomplete commenting, but that was my next step!
I've kicked off "spawn"; it runs fine, but errors on createSystemGenerated for Netherlands; if I comment out the first few countries so that Netherlands is the first, it then runs fine on Netherlands & errors out on Taiwan.
Bookmarks