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

Move emails not working VB-Help!



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 3rd 08, 03:20 PM posted to microsoft.public.outlook.program_vba
Rivers
external usenet poster
 
Posts: 16
Default Move emails not working VB-Help!

hi guys seriously had this working one moment changed something and since
then didnt run ever again
i need my mail at the end of pulling the attachments off to move the emails
to another folder

Ken helped me before explaining i need to step backwords in a loop but i
seriously have no idea wat this means can anyone help the loop works for
about three or four items and then throws up this error:

CANNOT MOVE ITEMS

the code is below

thanks

Do Until SubFolder.Items.Count = 0
For Each Item In SubFolder.Items
Item.Move otherInbox.Folders("Flash Processed")
Next Item
Loop
Ads
  #2  
Old July 3rd 08, 08:50 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Move emails not working VB-Help!



Do Until Items.Count = 0
Items(1).Move...
Loop

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Thu, 3 Jul 2008 07:20:02 -0700 schrieb Rivers:

hi guys seriously had this working one moment changed something and since
then didnt run ever again
i need my mail at the end of pulling the attachments off to move the

emails
to another folder

Ken helped me before explaining i need to step backwords in a loop but i
seriously have no idea wat this means can anyone help the loop works for
about three or four items and then throws up this error:

CANNOT MOVE ITEMS

the code is below

thanks

Do Until SubFolder.Items.Count = 0
For Each Item In SubFolder.Items
Item.Move otherInbox.Folders("Flash Processed")
Next Item
Loop

  #3  
Old July 4th 08, 06:46 PM posted to microsoft.public.outlook.program_vba
Sergio Neves[_2_]
external usenet poster
 
Posts: 1
Default Move emails not working VB-Help!

Hi

I think I had a similar problem.
Is it an IMAP account?!

I tried to move messages of my Gmail IMAP account but since they use a
slightly different system (because of the labels) the move command does not
always work!
If you move the message manually in Outlook it works, but in VBA it does not.
I used the exact same code in another IMAP account and the code works fine.
Does anyone else had the same problem?!


Sergio



"Rivers" wrote:

hi guys seriously had this working one moment changed something and since
then didnt run ever again
i need my mail at the end of pulling the attachments off to move the emails
to another folder

Ken helped me before explaining i need to step backwords in a loop but i
seriously have no idea wat this means can anyone help the loop works for
about three or four items and then throws up this error:

CANNOT MOVE ITEMS

the code is below

thanks

Do Until SubFolder.Items.Count = 0
For Each Item In SubFolder.Items
Item.Move otherInbox.Folders("Flash Processed")
Next Item
Loop

 




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
Cannot move emails between folders PeterL Outlook - General Queries 0 May 3rd 08 01:11 AM
move emails to another pc vonClausowitz Outlook and VBA 2 October 6th 07 03:39 PM
How do I move old emails onto new network? MikeH NC Outlook - Installation 1 February 28th 07 03:53 AM
Move .DeleteAfterSubmit not working (outlook 98) emanson Outlook and VBA 9 February 17th 06 05:49 AM
Move emails coffeeman Outlook Express 12 February 17th 06 05:22 AM


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