D
Dieter Molle
Hi all,
maybe someone can help me:
i try to edit calendar entries with a VB Script like this:
'---------------------------
Const olFolderCalendar = 9
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myOLFolder = myNameSpace.GetDefaultFolder(olFolderCalendar)
Set myEntry = myOLFolder.items("Test 1234")
myEntry.Body = "Hello "
myEntry.save
'---------------------------
As you can see, i want to reference the item by its subject. The
script runs fine.
Now my problem is: what if i have two or more calendar items with the
same subject?! This script writes to the first item found.
Can i loop through all items with a special subject?
What i could do was loop throug ALL calendar items and looking for
those where the subject matches, but is there no easier way to do
this?
Thanks in advance for your help,
Greetings,
Dieter
maybe someone can help me:
i try to edit calendar entries with a VB Script like this:
'---------------------------
Const olFolderCalendar = 9
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myOLFolder = myNameSpace.GetDefaultFolder(olFolderCalendar)
Set myEntry = myOLFolder.items("Test 1234")
myEntry.Body = "Hello "
myEntry.save
'---------------------------
As you can see, i want to reference the item by its subject. The
script runs fine.
Now my problem is: what if i have two or more calendar items with the
same subject?! This script writes to the first item found.
Can i loop through all items with a special subject?
What i could do was loop throug ALL calendar items and looking for
those where the subject matches, but is there no easier way to do
this?
Thanks in advance for your help,
Greetings,
Dieter