I have tried that before, but this method exports the whole table into the excel. I only would like to export a selected number of fields from a selected (bookmarked) record into excel.
' RS is recordset filled with data from a query
numRecs = activesheet.range("a1".CopyFromRecordset(RS)
' must catch return value or doesn't work
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.