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

Noob to Outlook and VBA



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 20th 11, 12:02 AM
SailorJF SailorJF is offline
Junior Member
 
First recorded activity at Outlookbanter: Jul 2011
Posts: 1
Default Noob to Outlook and VBA

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
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
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


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