Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default Sending Excel Workbooks to Outlook people automatically

Hello,

I run an Excel macro with vba statement that send different workbooks to
different people via Outlook Exchange server in my company:

Workbook.Open Filename: = "filename report for Person 1"
ActiveWorkbook.sendmail Recipients: = "Person 1 e-mail name"
Workbook.Open Filename: = "filename report for Person 2"
ActiveWorkbook.sendmail Recipients: = "Person 2 e-mail name"
Workbook.Open Filename: = "filename report for Person 3"
ActiveWorkbook.sendmail Recipients: = "Person 3 e-mail name"

When it runs I get a message box with title "Microsoft Office Outlook" that
says:

A program is trying to send an e-mail message on your behalf....

Each time I have to click the "Allow" button to send each email with
attachment. Do you know how I can avoid getting this warning?

Thank you very much!

Craig

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sending Excel Workbooks to Outlook people automatically

Hi Craig

See
http://www.rondebruin.nl/mail/prevent.htm


--

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


"Craig" wrote in message ...
Hello,

I run an Excel macro with vba statement that send different workbooks to
different people via Outlook Exchange server in my company:

Workbook.Open Filename: = "filename report for Person 1"
ActiveWorkbook.sendmail Recipients: = "Person 1 e-mail name"
Workbook.Open Filename: = "filename report for Person 2"
ActiveWorkbook.sendmail Recipients: = "Person 2 e-mail name"
Workbook.Open Filename: = "filename report for Person 3"
ActiveWorkbook.sendmail Recipients: = "Person 3 e-mail name"

When it runs I get a message box with title "Microsoft Office Outlook" that
says:

A program is trying to send an e-mail message on your behalf....

Each time I have to click the "Allow" button to send each email with
attachment. Do you know how I can avoid getting this warning?

Thank you very much!

Craig

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
Sending Excel through Outlook MsNat Excel Discussion (Misc queries) 1 October 21st 09 10:11 PM
Sending task to Outlook from Excel [email protected] Excel Programming 0 April 23rd 07 11:09 AM
sending outlook tasks to multiple people [email protected] Excel Programming 0 February 15th 06 08:38 PM
Sending Outlook mail through Excel mikems Excel Programming 1 October 12th 04 06:25 PM
Hangs on Outlook after sending excel ss Tim Zych[_2_] Excel Programming 0 July 19th 03 05:01 AM


All times are GMT +1. The time now is 04:12 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"