![]() |
Attachment issues...
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 |
Attachment issues...
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 |
Attachment issues...
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? |
All times are GMT +1. The time now is 05:20 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com