![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Our trading system automatically generates 4 reports everyday. I want
to create a macro that will automatically send those reports to the appropriate people. Here is what I have so far: Sub Test() Set objOL = CreateObject("Outlook.Application") Set objMail = objOL.CreateItem(0) With objMail .Subject = "Destination Details Report" .To = "John Q. Public" .Attachments.Add "c:\temp\TEST.txt" .Send End With End Sub I am encountering 2 problems. First, I would like the current date to automatically fill in somewhere in Subject line. For example, ..Subject = "Destination Details Report" $mm/dd/yy$ Anyone know the correct syntax for this or if it is even possible? Secondly, our trading system generates the filename of the report in this format: DestExecDetailsReport20060117.csv As you can see, the date is automatically added to the end of the report name. Is it possible for me to do this macro if the name of the file I want to attach changes names everyday? Thank you in advance for your help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |