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

Automatically Email Daily Reports Using Outlook.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 20th 06, 02:56 PM posted to microsoft.public.outlook.program_vba
chimp
external usenet poster
 
Posts: 4
Default Automatically Email Daily Reports Using Outlook.

Awesome. Thanks for helping me out. I rectified the .Subject line
problem. However, I must have the syntax wrong for calling the report
to be attached. Here is what I have for the attachment line:

..Attachments.Add FileName = "c:\temp\DestExecDetailsReport" &
Format(Date, "yyyymmdd") & ".csv"

I receive a "Run-time error '5': Invalid procedure call or argument"
error message when I run it. I also tried:

..Attachments.Add FileName = "c:\temp\DestExecDetailsReport" &
Format(TheDateInQuestion, "yyyymmdd") & ".csv"

I received the same error. I wasn't sure if I should actually use
"TheDateInQuestion" in the line. You can fit all I know about Visual
Basic into a thimble, but that is fairly evident by now.

  #2  
Old January 20th 06, 03:07 PM posted to microsoft.public.outlook.program_vba
chimp
external usenet poster
 
Posts: 4
Default Automatically Email Daily Reports Using Outlook.

I finally figured it out. Here is what I needed to do:

..Attachments.Add "c:\temp\DestExecDetailsReport" & Format(Date,
"yyyymmdd") & ".csv"

Now it works. Thanks so much Michael. I would like to ask you one
more question however. How do I disable the warning box that pops up
when I send the email via the macro.

"A program is trying to automatically send e-mail on your behalf. Do
you want to allow this? If this is unexpected, it may be a virus and
you should choose "No"." I browsed the newsgroup and followed the
links, but I don't completely understand the process.

  #3  
Old January 21st 06, 09:11 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Automatically Email Daily Reports Using Outlook.

Am 20 Jan 2006 07:07:19 -0800 schrieb chimp:

Please read this: http://www.outlookcode.com/d/sec.htm


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


I finally figured it out. Here is what I needed to do:

.Attachments.Add "c:\temp\DestExecDetailsReport" & Format(Date,
"yyyymmdd") & ".csv"

Now it works. Thanks so much Michael. I would like to ask you one
more question however. How do I disable the warning box that pops up
when I send the email via the macro.

"A program is trying to automatically send e-mail on your behalf. Do
you want to allow this? If this is unexpected, it may be a virus and
you should choose "No"." I browsed the newsgroup and followed the
links, but I don't completely understand the process.

 




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
Suppress Outlook 2000 from automatically retrieving Exchange 2003 Email Ed_No_Spam_Please_Weber@Weber_Spam_Not_Enterprises.Org Outlook - General Queries 2 March 5th 06 04:01 AM
How to automatically forward news to an email add?? (plz note that news not email) thanks [email protected] Outlook - General Queries 1 February 24th 06 01:24 PM
how can i receive a copy of email i send out - automatically? Suchi Outlook - General Queries 3 February 16th 06 09:25 AM
send form or email automatically on a schedule? Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 07:38 PM
Business Contact Manager won't run reports vikbob Outlook - Installation 0 January 19th 06 12:53 AM


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