![]() |
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
|
|||
|
|||
![]()
Hi All
Apologies if this is in the wrong place to start off with, I am currently looking for some assistance in been able to obtain some VBA code that I can run from a rule within in Outlook. I work within in a busy office and I receive many emails that have attachments which I would like to save to a folder on our network or Desktop folder depending on the type of file that has been attached (tiff, pdf, jpeg and exel) The Vba Code needs to do the following: 1. Check the incoming email for attachments (which is based on a rule) 2. Check the attachment file extension (excel, csv, pdf, tiff) 3 If the file extension meets the following criteria: if attachment.extension = excel then save it to C:\Documents And Settings\" & _ UserN & "\Desktop\Shared\excel" if attachment.extension = CSV then save it to C:\Documents And Settings\" & _ UserN & "\Desktop\Shared\CSVFiles" if attachment.extension = jpeg then save it to C:\Documents And Settings\" & _ UserN & "\Desktop\Shared\JpegFiles" if attachment.extension = .tiff then save it to C:\Documents And Settings\" & _ UserN & "\Desktop\Shared\.tifffiles" (if the attachments could be saved with the name and date stamp for each) Then the lastly move the email to the Archive folder called PODS If someone could assist me in this I would be most grateful for this, as my skills at writing code is non existent (only just discovered VBA after watching someone use it to send automatic emails) and I am trying learn as I go along |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA Code to Delete an Email After it is Processed by VBA | robboll | Outlook - General Queries | 4 | January 8th 10 03:41 PM |
Noob form question | Topher | Outlook - Using Forms | 1 | October 16th 07 03:47 PM |
Designing a form in contacts - noob question | SW | Outlook - Using Forms | 11 | March 29th 06 05:44 PM |
(Noob) VB6 COM Addin Question | Mike K | Add-ins for Outlook | 2 | March 15th 06 05:33 PM |
Complete Noob Here - Outlook Form - Concept | SFC Charlie Cox | Outlook - Using Forms | 9 | March 15th 06 02:44 PM |