Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Returning data to excel from msquery

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Returning data to excel from msquery

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
================================================== ===


(Kim) wrote in message . com...
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting external data from Access 2007 using msquery terry???????? Excel Discussion (Misc queries) 0 June 19th 08 05:16 PM
Creating a profit and loss from MSQuery Data c ryner Excel Discussion (Misc queries) 2 May 12th 08 02:35 PM
MSQuery does not see the tables in an excel workbook, help. Paul Wes Excel Discussion (Misc queries) 3 July 13th 06 09:15 PM
msquery in Excel 2007 Philippe Cand Excel Discussion (Misc queries) 1 June 22nd 06 03:06 AM
MSQuery editing source data? Dave H Excel Discussion (Misc queries) 0 April 21st 06 04:41 PM


All times are GMT +1. The time now is 08:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"