A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

MS Visual Basic error in Outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 6th 06, 04:14 PM posted to microsoft.public.outlook
XP User
external usenet poster
 
Posts: 7
Default 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 ?
Ads
  #2  
Old May 6th 06, 09:40 PM posted to microsoft.public.outlook
John Blessing
external usenet poster
 
Posts: 15
Default 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


  #3  
Old May 7th 06, 04:56 AM posted to microsoft.public.outlook
XP User
external usenet poster
 
Posts: 7
Default 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


  #4  
Old May 7th 06, 01:45 PM posted to microsoft.public.outlook
John Blessing
external usenet poster
 
Posts: 15
Default 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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 02:22 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-2025 Outlook Banter.
The comments are property of their posters.