![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 ? |
Ads |
#2
|
|||
|
|||
![]()
"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 |
#3
|
|||
|
|||
![]()
"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 |
#4
|
|||
|
|||
![]() "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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 Basic Book Suggestions | Jason M | Outlook - General Queries | 3 | April 4th 06 12:29 AM |
Visual Basic and OE | compctec@gmail.com | Outlook Express | 1 | February 8th 06 02:35 PM |
Visual Basic Editor opens automatically | ashish.sadanandan@gmail.com | Outlook - General Queries | 0 | February 6th 06 05:54 PM |
Visual Basic Editor opens automatically | ashish.sadanandan@gmail.com | Outlook and VBA | 0 | February 6th 06 05:53 PM |
how do Visual Basic Application (VBA) commands work | Jason | Outlook and VBA | 2 | January 10th 06 10:50 AM |