A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Access Email Automation



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 25th 08, 11:31 AM posted to microsoft.public.outlook.program_vba
Emma Hope
external usenet poster
 
Posts: 3
Default Access Email Automation

Hi All,

I need to send an email to a group of people from Access, this is the
scenario....

I run a query to select the people i want to send to (approx 20 people), i
want to send the same email to each of the 20 but i want to send each one
individually i.e. personalise it, Hi John, Hi Sarah, Hi Dave etc....... using
the [First Name] field from my query. The rest of the email stays the same.

I know how to use SendObject to email one person at a time from an Access
macro but i want send all 20 at once, i don't need to view the email before i
send but i do want to be able to make the email look nice, i.e. some bold
text, change the font colour etc, i believe i need a template to do this but
i don't know how to make one.

Can someone help me do this from first principles, i have intermediate
coding (VBA) skills in Access but absolutely no idea about coding in Outlook
(i have Office 2003).

Thanks very much
Emma
Ads
  #2  
Old April 28th 08, 07:26 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Access Email Automation



You can code your solution to send 20 e-mails with a single click. But you
still have to send 20 e-mails individually.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool:
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Fri, 25 Apr 2008 03:31:01 -0700 schrieb Emma Hope:

Hi All,

I need to send an email to a group of people from Access, this is the
scenario....

I run a query to select the people i want to send to (approx 20 people), i
want to send the same email to each of the 20 but i want to send each one
individually i.e. personalise it, Hi John, Hi Sarah, Hi Dave etc.......

using
the [First Name] field from my query. The rest of the email stays the

same.

I know how to use SendObject to email one person at a time from an Access
macro but i want send all 20 at once, i don't need to view the email

before i
send but i do want to be able to make the email look nice, i.e. some bold
text, change the font colour etc, i believe i need a template to do this

but
i don't know how to make one.

Can someone help me do this from first principles, i have intermediate
coding (VBA) skills in Access but absolutely no idea about coding in

Outlook
(i have Office 2003).

Thanks very much
Emma

  #3  
Old April 28th 08, 08:43 AM posted to microsoft.public.outlook.program_vba
Emma Hope
external usenet poster
 
Posts: 3
Default Access Email Automation


Thanks. Can you give me some advice on how to go about this.
  #4  
Old April 28th 08, 05:02 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Access Email Automation



I don't know Access VBA. But if you know how to use SendObject once, you
just need to loop trough the result of your query and call the object once
in every loop.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool:
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 28 Apr 2008 00:43:00 -0700 schrieb Emma Hope:

Thanks. Can you give me some advice on how to go about this.

  #5  
Old April 28th 08, 06:25 PM posted to microsoft.public.outlook.program_vba
Emma Hope
external usenet poster
 
Posts: 3
Default Access Email Automation

The Access newsgroup people say i should ask the Outlook newsgroup people!!!!

The problem is knowing how to use this with an Outlook template which is
nothing to do with Access. I need to know how to pull the data from Access
and use it in Outlook with a template.

Surely this is possible?

  #6  
Old April 28th 08, 06:54 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Access Email Automation

By template, do you mean an .oft file? In that case, instantiate an Outlook.Application object and call its CreateItemFromTemplate method. Add a recipient, send, and repeat for as many addresses as you have.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Emma Hope" wrote in message ...
The Access newsgroup people say i should ask the Outlook newsgroup people!!!!

The problem is knowing how to use this with an Outlook template which is
nothing to do with Access. I need to know how to pull the data from Access
and use it in Outlook with a template.

Surely this is possible?

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Automation Bob Barnes Outlook and VBA 3 March 9th 08 10:54 PM
Outlook Automation Contact Photo Access Alexander Add-ins for Outlook 7 October 11th 07 06:48 PM
Outlook Automation Automation Problem Out of Memory MikeA[_2_] Outlook and VBA 7 July 30th 07 02:31 PM
outlook 2007 automation from Access phleduc Outlook - General Queries 6 June 25th 07 08:48 PM
Email Automation in Vista John Hutcins Outlook and VBA 1 January 25th 07 07:26 PM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.