L
Long Nguyen
Hi,
In my Outlook custom form I have this vbscript code that get an calendar
item:
Set olns = Item.Application.GetNameSpace("MAPI")
Set MyFolder1 = olns.Folders("Public Folders")
Set MyFolder2 = MyFolder1.Folders("All Public Folders")
Set MyFolder3 = MyFolder2.Folders("ITS")
Set MyFolder = MyFolder3.Folders("My Calendar")
Set olns = Nothing
Set strCalItem = MyFolder.Items("New request")
If the item "New Request" is not there Outlook would display the message
"Operation failed. An object could not be found."
I'd like to display a meaningful message to users. In vbscript how can I
check if the entry "New Requests" exists in the calendar (and if not display
the meaningful message).
Thanks
Long
In my Outlook custom form I have this vbscript code that get an calendar
item:
Set olns = Item.Application.GetNameSpace("MAPI")
Set MyFolder1 = olns.Folders("Public Folders")
Set MyFolder2 = MyFolder1.Folders("All Public Folders")
Set MyFolder3 = MyFolder2.Folders("ITS")
Set MyFolder = MyFolder3.Folders("My Calendar")
Set olns = Nothing
Set strCalItem = MyFolder.Items("New request")
If the item "New Request" is not there Outlook would display the message
"Operation failed. An object could not be found."
I'd like to display a meaningful message to users. In vbscript how can I
check if the entry "New Requests" exists in the calendar (and if not display
the meaningful message).
Thanks
Long