ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   sql connection in macro (https://www.excelbanter.com/excel-programming/308567-sql-connection-macro.html)

tommy

sql connection in macro
 
I need to access a list of email addresses in a db using sql, can i do
this in my macro that is sending the email? if not, whats the best way
to go about it

Jake Marx[_3_]

sql connection in macro
 
Hi tommy,

tommy wrote:
I need to access a list of email addresses in a db using sql, can i do
this in my macro that is sending the email? if not, whats the best way
to go about it


If you don't have much VBA experience, a Database Query would be the easiest
way to accomplish your task. Go to Data | Import External Data | New
Database Query and follow the wizard to set up your query. The query
results can be returned to an Excel range, which you can step through using
code when preparing to generate the email(s).

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]



All times are GMT +1. The time now is 05:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com