Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - General Queries (http://www.outlookbanter.com/outlook-general-queries/)
-   -   MS Visual Basic error in Outlook (http://www.outlookbanter.com/outlook-general-queries/13917-ms-visual-basic-error-outlook.html)

XP User May 6th 06 04:14 PM

MS Visual Basic error in Outlook
 
Vba Project OTM - Thisoutlooksession(code)
window pops up, and I have to stop the degugger
to send an email.

I've been using OL 2002 for 2 year, never had this problem,

How can I fix it ?

John Blessing May 6th 06 09:40 PM

MS Visual Basic error in Outlook
 
"XP User" wrote in message
...
Vba Project OTM - Thisoutlooksession(code)
window pops up, and I have to stop the degugger
to send an email.

I've been using OL 2002 for 2 year, never had this problem,

How can I fix it ?


Fix the code ?

Supply more info so we have a better idea what your problem is?

Take your pick of above.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook, find/replace,
send newsletters



XP User May 7th 06 04:56 AM

MS Visual Basic error in Outlook
 
"XP User" wrote in message
Vba Project OTM - Thisoutlooksession(code)
window pops up, and I have to stop the degugger
to send an email.
I've been using OL 2002 for 2 year, never had this problem,
How can I fix it


The Debugger shows:

Compile Error:
Syntax Error

[Application] [ItemSend]

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

Dim objNS As NameSpace

Dim objFolder As MAPIFolder

Set objNS = Application.GetNamespace("MAPI")

Set objFolder = objNS.PickFolder

If TypeName(objFolder) "Nothing" _ And

IsInDefaultStore(objFolder) Then

Set Item.SaveSentMessageFolder = objFolder

End If



John Blessing May 7th 06 01:45 PM

MS Visual Basic error in Outlook
 

"XP User" wrote in message
...
"XP User" wrote in message
Vba Project OTM - Thisoutlooksession(code)
window pops up, and I have to stop the degugger
to send an email.
I've been using OL 2002 for 2 year, never had this problem,
How can I fix it


The Debugger shows:

Compile Error:
Syntax Error

[Application] [ItemSend]

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

Dim objNS As NameSpace

Dim objFolder As MAPIFolder

Set objNS = Application.GetNamespace("MAPI")

Set objFolder = objNS.PickFolder

If TypeName(objFolder) "Nothing" _ And

IsInDefaultStore(objFolder) Then

Set Item.SaveSentMessageFolder = objFolder

End If


Well, it is a bit OT for this group, but ...

You don't say which line the syntax error occurred on, but, I'm guessing it
might be:


If TypeName(objFolder) "Nothing" _ And


You have a line continuation character, but "And" appears on the same line.

Further discussion should really be taken to one of the .vba groups.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook, find/replace,
send newsletters




All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com