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

automated saving body and attachment



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old February 27th 08, 05:13 PM posted to microsoft.public.outlook.program_vba
Perge
external usenet poster
 
Posts: 4
Default automated saving body and attachment

I am trying to make a VB macro to run Outlook, process every email that comes
to the inbox from a machine that sends an identical email subject with a
small amount of descriptive text in the body and a numerical .csv data file
attachment. It reads a unique time, date and type from the body then using
them, saves the body and attachment with a unique filename as a .txt and a
..csv file respectively.
Two problems 1) with the code:

Set myNameSpace = Application.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderInbox)
myFolder.Display

it opens a new instance of the inbox every time it executes. How do I
prevent that?

It displays a security error when it tries to save the data. How do I
suppress that error?
 




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
Help with Saving Attachment with VBA from Rules Murphybp2 Outlook and VBA 4 August 21st 07 02:16 PM
HTM body and an attachment Edwin Outlook - Using Forms 0 January 23rd 07 01:39 PM
Saving Attachments using VBA and parsing information from subject/body [email protected] Outlook and VBA 3 December 12th 06 07:56 PM
Read Attachment - Body Vadhimoo Outlook and VBA 1 December 4th 06 05:59 AM
saving email without attachment Happy Outlook Express 3 January 24th 06 05:34 PM


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