The code below is from a project that outputs a lot of data from recordsets to Excel. When I run this piece of code and various others I get the error message:
Run-time error '-2147221080 (800401a8)'
Method of 'Cells' of object '_Worksheet' failed
I've tried copying the code into another...