![]() |
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
|
|||
|
|||
![]()
Does anyone out there know a good VBA reference for automatically adding
attachments to custom forms? All I want to do is write a script that will grab a file (whose name constantly changes with the date) from a folder (whose name also changes with the date) - so that a user can just open the form, see that the correct attachments are there, and click "send". I have to send these attachments daily and its a real pain. All I know is that I need a message field for the code to work. Anybody? -- Message posted via http://www.officekb.com |
Ads |
#2
|
|||
|
|||
![]()
In article 7226ee2160317@uwe, Prt75 via OfficeKB.com wrote:
I have to send these attachments daily and its a real pain. All I know is that I need a message field for the code to work. Anybody? Actually, you are really wanting to use something called an Action Item. This is data item that sits in one of your folders, you open it, it runs the code behind the form to do the function you want, and then you close it when you are done. I prefer to use a Contact item, and yes, it does have a Notes field, so it can run code. For an example of one such action item, you can see the following example posted on my blog: Automating Tip Capture with Office Systems 2003 – Part 1 http://msmvps.com/blogs/obts/archive.../19/71691.aspx - 78 KB Automating Tip Capture with Office Systems 2003 - Part 2 All you ever wanted to know about the code. The first section in the code gives credit where credit is due. The SharePoin... http://msmvps.com/blogs/obts/archive.../19/71693.aspx - 139 KB Part 1 discusses what I am trying to do - which includes creating a new message and attaching a file to it and then sending it. Part 2 gives you all the code I use and describes, in detail, what the code does. -- Hollis Paul Mukilteo, WA USA |
#3
|
|||
|
|||
![]()
I'm confused: You asked about a VBA *and* custom forms. The code behind a custom form is VBScript, not VBA.
But more important is -- to whom are you sending these messages that you create from a custom form? Is it only to people inside your organization? If not, then you may need to rethink this scenario. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "prt75 via OfficeKB.com" u34098@uwe wrote in message news:7226ee2160317@uwe... Does anyone out there know a good VBA reference for automatically adding attachments to custom forms? All I want to do is write a script that will grab a file (whose name constantly changes with the date) from a folder (whose name also changes with the date) - so that a user can just open the form, see that the correct attachments are there, and click "send". I have to send these attachments daily and its a real pain. All I know is that I need a message field for the code to work. Anybody? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
rich text and attachment issues in Outlook 2003 | feigenluis | Outlook - General Queries | 1 | January 16th 07 07:34 PM |
OE issues | [email protected] | Outlook Express | 4 | November 12th 06 05:10 AM |
Can I replace the attachment file when double chick attachment? | [email protected] | Outlook - General Queries | 3 | August 3rd 06 04:10 PM |
OE issues | Clifford Hines | Outlook Express | 1 | June 19th 06 03:24 AM |
To: field issues! | Seawolf | Outlook - Using Contacts | 3 | June 5th 06 04:21 PM |