PC Review


Reply
Thread Tools Rate Thread

Accessing Outlooks address book via VBA embedded in Excel

 
 
Phil Martin
Guest
Posts: n/a
 
      29th Jan 2008
I have a spreadsheet that mails itself to an end user upon completion. The
recipient is specified by the user. At the moment this is by using inputbox.
What I would like to do is bring up the Outlook address book and let the user
select the email address from that. Is that possible?
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      29th Jan 2008
Hi Phil

Display the mail and let the user choose

Do you use SendMail in the code or the Outlook object model


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Phil Martin" <(E-Mail Removed)> wrote in message news:37C70CB8-BFAF-4CD5-8647-(E-Mail Removed)...
>I have a spreadsheet that mails itself to an end user upon completion. The
> recipient is specified by the user. At the moment this is by using inputbox.
> What I would like to do is bring up the Outlook address book and let the user
> select the email address from that. Is that possible?

 
Reply With Quote
 
JP
Guest
Posts: n/a
 
      29th Jan 2008
Sorry, I can't seem to view the original message.

You can do this in CDO, see here: http://www.outlookcode.com/d/code/selectnames.htm

Also there is a method in Outlook 2007, if you have it:
http://msdn2.microsoft.com/en-us/library/bb208172.aspx

HTH,
JP

On Jan 29, 12:08*pm, "Ron de Bruin" <rondebr...@kabelfoon.nl> wrote:
> Hi Phil
>
> Display the mail and let the user choose
>
> Do you use SendMail *in the code or the Outlook object model
>
> --
>
> Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm
>
>
>
> "Phil Martin" <PhilMar...@discussions.microsoft.com> wrote in messagenews:37C70CB8-BFAF-4CD5-8647-(E-Mail Removed)...
> >I have a spreadsheet that mails itself to an end user upon completion. The
> > recipient is specified by the user. At the moment this is by using inputbox.
> > What I would like to do is bring up the Outlook address book and let theuser
> > select the email address from that. Is that possible?- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
Phil Martin
Guest
Posts: n/a
 
      29th Jan 2008
Hi Ron,

The sendmail is in the code. At the moment the user does not see the mail.
It acts like it is a background process

"Ron de Bruin" wrote:

> Hi Phil
>
> Display the mail and let the user choose
>
> Do you use SendMail in the code or the Outlook object model
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Phil Martin" <(E-Mail Removed)> wrote in message news:37C70CB8-BFAF-4CD5-8647-(E-Mail Removed)...
> >I have a spreadsheet that mails itself to an end user upon completion. The
> > recipient is specified by the user. At the moment this is by using inputbox.
> > What I would like to do is bring up the Outlook address book and let the user
> > select the email address from that. Is that possible?

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      29th Jan 2008
Hi Phil

Then use

.SendMail "", _
"This is the Subject line"

If the To is "" empty it will display the mail and the user can use the address book


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Phil Martin" <(E-Mail Removed)> wrote in message news:747676FB-A1E7-4226-B898-(E-Mail Removed)...
> Hi Ron,
>
> The sendmail is in the code. At the moment the user does not see the mail.
> It acts like it is a background process
>
> "Ron de Bruin" wrote:
>
>> Hi Phil
>>
>> Display the mail and let the user choose
>>
>> Do you use SendMail in the code or the Outlook object model
>>
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "Phil Martin" <(E-Mail Removed)> wrote in message news:37C70CB8-BFAF-4CD5-8647-(E-Mail Removed)...
>> >I have a spreadsheet that mails itself to an end user upon completion. The
>> > recipient is specified by the user. At the moment this is by using inputbox.
>> > What I would like to do is bring up the Outlook address book and let the user
>> > select the email address from that. Is that possible?

>>

 
Reply With Quote
 
Phil Martin
Guest
Posts: n/a
 
      30th Jan 2008
Hi Ron,

Works perfectly, thanks very much

"Ron de Bruin" wrote:

> Hi Phil
>
> Then use
>
> .SendMail "", _
> "This is the Subject line"
>
> If the To is "" empty it will display the mail and the user can use the address book
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Phil Martin" <(E-Mail Removed)> wrote in message news:747676FB-A1E7-4226-B898-(E-Mail Removed)...
> > Hi Ron,
> >
> > The sendmail is in the code. At the moment the user does not see the mail.
> > It acts like it is a background process
> >
> > "Ron de Bruin" wrote:
> >
> >> Hi Phil
> >>
> >> Display the mail and let the user choose
> >>
> >> Do you use SendMail in the code or the Outlook object model
> >>
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "Phil Martin" <(E-Mail Removed)> wrote in message news:37C70CB8-BFAF-4CD5-8647-(E-Mail Removed)...
> >> >I have a spreadsheet that mails itself to an end user upon completion. The
> >> > recipient is specified by the user. At the moment this is by using inputbox.
> >> > What I would like to do is bring up the Outlook address book and let the user
> >> > select the email address from that. Is that possible?
> >>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing Outlook Address book from Excel VBA Stefi Microsoft Excel Programming 5 29th May 2008 08:09 AM
Address Book from OUTLOOKS Jimmy Thai Windows Vista Mail 1 14th Feb 2007 05:55 PM
Accessing Address book from C# =?Utf-8?B?bGF1Z2U=?= Microsoft C# .NET 2 30th Mar 2006 03:11 PM
Accessing address book Phil Rose Microsoft Outlook Discussion 0 1st Jul 2004 01:04 AM
Accessing address book Robert Leithe Microsoft Outlook Installation 0 24th Sep 2003 11:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:07 PM.