Hi,
I have a SQL query written in Excel VB Module, which generates the data and stores in Recordset. Like this:
Set rst = New ADODB.Recordset
rst.CursorLocation = adUseClient
rst.Open sqlString, connectionVar, adOpenKeyset, adLockPessimistic
With this I can copy the data into Excel...