tags:

views:

331

answers:

1
A: 

This line:

Sheets("Sheet2").[A1].CopyFromRecordset recordset

is duplicating the basics of the With block after it. Either use it or the With block, but not both.

Also use variable names that don't match the typenames, it's just asking for hard to find problems.

Other than that I would suspect either the Stored Procedure, or maybe too much data is being pulled.

Lance Roberts
thanks, i ll take the duplicate line out and fix the other bits, sp works fine everywhere. It gets about 11 rows with 23 columns of data and is one of the smallest. Some of other (yet to implemented) will get thousands of rows of data.Not sure what to try next but need to get it to work asap.
TheOCD