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

macro can not get all attachments in one time



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 25th 08, 02:16 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 2
Default macro can not get all attachments in one time

Eirc:

Thank you so much. It works!

Your reply helps me not only in solving the issue but also let me know
why it does not work the way I expected.

Franco


On Apr 24, 11:11*am, Eric Legault [MVP - Outlook]
wrote:
This is one of the situations where you have to do a reverse loop, because
the number of message items in the collection change as you move them. *So
try this kind of loop:

For intX = MailOrderFiles.Count To 1 Step -1
* * *Set myItem = MailOrderFiles.Item(intx)
* * *....
* * *myItem.Move
...
Next

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:http://www.collaborativeinnovations.ca
Blog:http://blogs.officezealot.com/legault/

 




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
Printing Outlook Emails with List of Attachments by Copy Macro Bert Outlook and VBA 1 May 21st 07 06:21 AM
macro to swap calendar time zone BorisS Outlook and VBA 1 September 14th 06 06:12 AM
vba macro to print email and attachments outlook 2000 Dan over in IT Outlook and VBA 2 June 7th 06 08:08 PM
Macro to kick in every time I send a message Jyoti Outlook and VBA 5 May 27th 06 11:04 AM
allow me to run macro time initiated hirosh Outlook and VBA 1 April 1st 06 06:40 AM


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