Problem using "refreshed" or later DSC recordset to populate spreadsheet

D

Dan Ricker

Instead of using a "For" clause, use a DO/While clause

Do While dscData.RecordsetDefs.Count > 0
dscData.RecordsetDefs.Delete 0
Loop

I agree, that the way you setup the "For" loop it looks
like it should work, but I've always used the Do Loop
method...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top