?
Solved

Spreadsheet macro

Posted on 2006-06-12
2
Medium Priority
?
798 Views
Last Modified: 2006-11-18
Hi
I have to write a spreadsheet marco that connects to a SQL database, and queries it and inputs the result into the spreadsheet cell.

Could anyone point me to some sample code that connects to a database using an ODBC source, and some sample code to query the database, that will go into a varible so that I can dumb it into a cell.

I am using Microsoft Excel 2003.

Thanxs for reading.

GrahamR99
0
Comment
Question by:GrahamR99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 12

Accepted Solution

by:
vb_jonas earned 1500 total points
ID: 16887115
0
 
LVL 12

Expert Comment

by:vb_jonas
ID: 16887131
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question