Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default 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]

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
always recheck data connection library for latest connection strin FurmanGG Excel Discussion (Misc queries) 0 September 14th 07 04:48 PM
internet connection via excel macro at timed intervels & save data to excel file. Sam Excel Worksheet Functions 1 July 22nd 07 06:08 AM
no DDE connection?? askmiller Excel Discussion (Misc queries) 0 August 5th 06 09:19 PM
Help with connection macro? Kimberly Anne Excel Discussion (Misc queries) 0 May 9th 06 07:04 PM
DB Connection error JoshPeltier Excel Programming 0 February 12th 04 10:21 PM


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

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

About Us

"It's about Microsoft Excel"