T
Tony Murnion
I have a button set up on a custom contact from to add a journal entry for a
contact. It worked fine until I went to Outlook 2003 and now I get the
error because the routine is not able to get the folder name. The following
is the script that I believe is not working correctly. It still works fine
with Outlook 2002
Function GetFolder (pintFolderType, objFolder)
Dim objMyFolders
Dim i
GetFolder = False
Set objMyFolders = Item.Parent.Folders
i = 1
Do While i <= objMyFolders.Count
If objMyFolders.Item(i).DefaultItemType = pintFolderType Then
Set objFolder = objMyFolders.Item(i)
GetFolder = True
Exit Do
End If
i = i + 1
Loop
If Not GetFolder then
MsgBox gstrErrorFolder, vbCritical, gstrAppName
End If
End Function
Thanks in Advance
Tony
contact. It worked fine until I went to Outlook 2003 and now I get the
error because the routine is not able to get the folder name. The following
is the script that I believe is not working correctly. It still works fine
with Outlook 2002
Function GetFolder (pintFolderType, objFolder)
Dim objMyFolders
Dim i
GetFolder = False
Set objMyFolders = Item.Parent.Folders
i = 1
Do While i <= objMyFolders.Count
If objMyFolders.Item(i).DefaultItemType = pintFolderType Then
Set objFolder = objMyFolders.Item(i)
GetFolder = True
Exit Do
End If
i = i + 1
Loop
If Not GetFolder then
MsgBox gstrErrorFolder, vbCritical, gstrAppName
End If
End Function
Thanks in Advance
Tony