473,326 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

move contents of inbox folder to another folder

I am trying to move the contents of the inbox folder into a folder for
archiving. I have found a few examples on MSDN (eg
http://msdn2.microsoft.com/en-us/library/bb206765.aspx), but I don't
appear to have access to all the objects that are being used in this
example. Has anybody successfully done this before?

*** Sent via Developersdex http://www.developersdex.com ***
Mar 14 '07 #1
1 2345
Mike,

What is the folder you are trying to move to? You should be able to
traverse the folder structure once you have the root (through the Folders
property in Outlook) and then call Move on the individual items, specifying
the folder object you want to move the item to.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike P" <mi*******@gmail.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>I am trying to move the contents of the inbox folder into a folder for
archiving. I have found a few examples on MSDN (eg
http://msdn2.microsoft.com/en-us/library/bb206765.aspx), but I don't
appear to have access to all the objects that are being used in this
example. Has anybody successfully done this before?

*** Sent via Developersdex http://www.developersdex.com ***

Mar 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jason Ferree | last post by:
I posetd this in one group, but got no response, so I'll try it in this one. I am trying to loop through all messages in the inbox. To do something, in my case, look for and save attachments....
2
by: Jason Ferree | last post by:
I am trying to loop through all messages in the inbox. To do something, in my case, look for and save attachments. It is telling me that items is not a collection. I've tried everything I can...
8
by: Steve Le Monnier | last post by:
Can anybody help with the following: I have some old VB6 code that loops through my inbox looking for emails with attachments and then save them to the hard drive. The code is very simplistic so I...
1
by: rency | last post by:
hi friends, Please give me solution if u have..it is very urgent for me! i have folders as a |....a1 |...... |...test.txt |
2
by: salad | last post by:
I have the following code. Dim Olapp As Object Dim Olmapi As Object Dim Olfolder As Object Set Olapp = GetObject(, "Outlook.Application") 'get reference Set Olmapi =...
5
by: =?Utf-8?B?RGF2aWRF?= | last post by:
Hi, I have to write an application that run once a day that can read all new mails on an exchange special inbox. Then I have to get the subject,attachments,date etc from each email . How can I...
1
by: Perl Beginner | last post by:
Hello all, I'm coding in Perl. And I'm trying to figure out how to simply count the number of messages in an inbox folder that is already open. i've been playing around with Mail::Box::Manager,...
2
by: bill | last post by:
I have this code to get to the default Outlook inbox but I would like to get to the inbox of an additional added mailbox. Can this be done? Here is the code I'm using below: Dim objSession As...
0
by: =?Utf-8?B?TWVlbWEgSnVkeQ==?= | last post by:
I have a Verizon Palm Treo 755p and use Outlook 2002 on my new HP Pavilion (Vista 64-bit). When I was syncing on my old XP PC, everything worked fine. On the Vista PC, when I finally got it to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.