Thread: VBA copy issues
View Single Post
 
Old 05-03-2023, 04:29 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Can you post a sample document and workbook that aligns with the code you are running so we can run the code and work out what your issue is?

Right off the bat I wouldn't be using a sql query to transfer the data into Excel - I would expect that to be writing to a Recordset, not to a worksheet.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote