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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ThisOutlookSession not starting



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old June 9th 06, 06:27 PM posted to microsoft.public.outlook.program_vba
Wanda
external usenet poster
 
Posts: 29
Default ThisOutlookSession not starting

We are using Outlook 2003 on a Windows 2000 network. When we were using
Outlook 2000 we went to TOOLS, MACRO, VB EDITOR and on "ThisOutlookSession"
for Application, ItemSend we created this code:
**********
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objNS As NameSpace
Dim objFolder As MAPIFolder

If Not Autoforward Then

Set objNS = Application.GetNamespace("MAPI")
Set objFolder = objNS.PickFolder

'If TypeName(objFolder) "Nothing" And IsInDefaultStore(objFolder) Then
If TypeName(objFolder) "Nothing" Then
Set Item.SaveSentMessageFolder = objFolder
End If

Set objFolder = Nothing
Set objNS = Nothing
End If
Autoforward = False

End Sub
****************

The code would bring up all our folders, so we could select the folder we
want to put our sent message into. Saved us doing it later. Now that we
have moved to Outlook 2003, this is not working. Tried setting the Security
lower then "high", but that does not work either. Is there something new we
need to do with Outlook 2003 to make this macro work automatically?

Thanks very much.

Wanda
 




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
starting outlook macca Outlook - Installation 2 June 4th 06 10:58 PM
Outlook 2007 not starting up Rob Outlook - Installation 2 May 31st 06 02:57 PM
This is starting to do my head in Branford Arms P.H. Outlook - Calandaring 2 May 13th 06 01:25 AM
Vba Project OTM - Thisoutlooksession(code) error XP User Outlook and VBA 4 May 7th 06 03:31 PM
Starting Outlook JCO Outlook - General Queries 0 April 3rd 06 03:24 PM


All times are GMT +1. The time now is 06:49 AM.


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.