Simple Question, How Do I send Data from a DB to Excel

G

Guest

Guest
I just want to know, how to open a new worksheet in vb and then send specific data from a db to specific cels, rows in an excel worksheet. This has got to be really easy but I just can't figure it out. My DB is in SQL if that really matters but it should not.

What I will do is create a query to get the specific date and then I just want to export that data to an excel worksheet.

Any simple sample code or quick explaination will be great
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Will not MS Query work? You can return data directly into your Excel sheet from a SQL database. You can set it to run on opening, manually, or whenever a specific cell value changes.
This message was edited by lenze on 2002-03-05 06:53
 
Upvote 0
MS Query wont really work, I get this info from any other program, and in that program i want them to send the info from this program to an excel worksheet, I don't want them to run Excel at all until they want to actually view the information sent to excel, the worksheet will be something like a printed document that can be edited.
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,382
Members
448,889
Latest member
TS_711

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top