WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Move emails not working VB-Help!

 
   Home -> Office -> Programming VBA RSS
Next:  Programming VBA: move mails to folder in a local pst depending on date  
Author Message
Rivers

External


Since: Jul 01, 2008
Posts: 18



(Msg. 1) Posted: Thu Jul 03, 2008 7:20 am
Post subject: Move emails not working VB-Help! Add to elertz
Archived from groups: microsoft>public>outlook>program_vba (more info?)

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
Back to top
Login to vote
Michael Bauer [MVP - Outl

External


Since: Aug 04, 2006
Posts: 1424



(Msg. 2) Posted: Thu Jul 03, 2008 9:50 pm
Post subject: Re: Move emails not working VB-Help! Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
Back to top
Login to vote
Sergio Neves

External


Since: Jul 04, 2008
Posts: 3



(Msg. 3) Posted: Fri Jul 04, 2008 10:46 am
Post subject: RE: Move emails not working VB-Help! Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET