473,394 Members | 1,640 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,394 software developers and data experts.

Outlook Notes delete

Hello

How can delete all Notes in the Outlook?

I try it with this code, but no success.

------
Dim oApp As New Outlook.Application
Dim oNotes As Outlook.MAPIFolder
Dim oNameSpace As Outlook.NameSpace

oNameSpace = oApp.GetNamespace("MAPI")
oNotes = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolde rs.olFolderNotes)

Dim i As Integer

For i = 0 To oNotes.Items.Count - 1
oNotes.Items.Remove(i)
Next
------

Can anybody help me?

regards
Roger
Nov 21 '05 #1
2 1486
Hi,

Try starting with the last note first.

Ken
--------------
"Roger Odermatt" <ro************@nospam.swica.ch> wrote in message
news:OZ***************@TK2MSFTNGP15.phx.gbl...
Hello

How can delete all Notes in the Outlook?

I try it with this code, but no success.

------
Dim oApp As New Outlook.Application
Dim oNotes As Outlook.MAPIFolder
Dim oNameSpace As Outlook.NameSpace

oNameSpace = oApp.GetNamespace("MAPI")
oNotes = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolde rs.olFolderNotes)

Dim i As Integer

For i = 0 To oNotes.Items.Count - 1
oNotes.Items.Remove(i)
Next
------

Can anybody help me?

regards
Roger

Nov 21 '05 #2
Thank you very much!

regards
Roger

"Ken Tucker [MVP]" <vb***@bellsouth.net> schrieb im Newsbeitrag
news:uF**************@TK2MSFTNGP10.phx.gbl...
Hi,

Try starting with the last note first.

Ken
--------------
"Roger Odermatt" <ro************@nospam.swica.ch> wrote in message
news:OZ***************@TK2MSFTNGP15.phx.gbl...
Hello

How can delete all Notes in the Outlook?

I try it with this code, but no success.

------
Dim oApp As New Outlook.Application
Dim oNotes As Outlook.MAPIFolder
Dim oNameSpace As Outlook.NameSpace

oNameSpace = oApp.GetNamespace("MAPI")
oNotes =
oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolde rs.olFolderNotes)

Dim i As Integer

For i = 0 To oNotes.Items.Count - 1
oNotes.Items.Remove(i)
Next
------

Can anybody help me?

regards
Roger

Nov 21 '05 #3

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

Similar topics

3
by: Siegfried Heintze | last post by:
Does the Outlook API supersede MAPI? If I implement a SPAM filter using MAPI to automatically delete messages from the message store, will other clients like Eudora benefit? If I implement a...
4
by: lauren quantrell | last post by:
Is there a way to open the MS Outlook address book using VBA and then be able to do something with the return value? I want users to click an icon to open the Outlook address book then when an...
1
by: VMI | last post by:
I need to develop a scheduler that will integrate Outlook's Calendar capabilities (individual/recurrent appointments, week and month view, etc...) with a few additional fields from our program. In...
9
by: ProgrammerGal | last post by:
I am hoping this is a quick easy question for someone! :) I am trying (struggling) with moving data from Sql Server to a Lotus Notes table. I am using SQL Server 2000, I have a Lotus Notes...
1
by: tbb | last post by:
hi I can create outlook apoointments using the outlook object model. But now to my problem, if the user edit/change the appointment in outlook I have inconsistent data because I store the...
9
by: M K | last post by:
I would like to write code to export to excel, outlook and word. Any idea where a good resource to look? I know about using the VBA macros as I have done that in lotus notes ( but that is VB to...
0
by: jazeelkm | last post by:
Hi , I am developing a windows application using C#. In that I want to display all the outlook profiles in a listbox and on selecting one, The folder structure should be displayed on a treeview...
6
by: Kevin | last post by:
In my business, I use Quickbooks extensively for billing and accounting and a custom built Access DB for project management. I recently began using MS Outlooks contacts quite extensively as well...
0
by: RLN | last post by:
RE: Access 2003 / Outlook 2003 My current Outlook data is stored on the server in MS Exchange. I have a local .pst on an external drive serving only as a backup. Right now I do these steps...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.