Returning data to excel from msquery

K

Kim

Hi

Hi

I'm importing data from a database via msquery.

Instead af using time to establish connection severel times and each
time returning data to excel, placing data different places - is there
a way to open the connection (one time) making severel sql's - placing
result different places in sheets - and afterwards closing the
connection?

Kind Regards

Kim
 
B

BrianB

Save your query and then set the macro recorder while you run it. This
will give you the basis of a more customised macro.


Regards
BrianB
=====================================================
 

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