Setting Storage folder

mac5048

New member
Local time
6:04 PM
Messages
13
Hey folks,
So i have recently upgraded a machine to win 7/office 2010, within the old build when you would send an email in outlook it would prompt you with a folder list where to save the message...

with the windows 7/2010 build i used the outlook vba to set it up as i did in this office 03 build:

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
Set objFolder = Nothing
Set objNS = Nothing
End Sub
Public Function IsInDefaultStore(objOL As Object) As Boolean
Dim objApp As Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objInbox As Outlook.MAPIFolder
On Error Resume Next
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set objInbox = objNS.GetDefaultFolder(olFolderInbox)
Select Case objOL.Class
Case olFolder
If objOL.StoreID = objInbox.StoreID Then
IsInDefaultStore = True
End If
Case olAppointment, olContact, olDistributionList, _
olJournal, olMail, olNote, olPost, olTask
If objOL.Parent.StoreID = objInbox.StoreID Then
IsInDefaultStore = True
End If
Case Else
MsgBox "This function isn't designed to work " & _
"with " & TypeName(objOL) & _
" items and will return False.", _
, "IsInDefaultStore"
End Select
Set objApp = Nothing
Set objNS = Nothing
Set objInbox = Nothing
End Function


In the office 2010 build it works the first time but then does not work after that. Any idea on how to get this to prompty everytime? thanks! any/all help is greatly appreciated!
 

My Computer

OS
Windows 7 64 bit

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Packard Bell
OS
Windows 7 Home Premium 64bit
CPU
Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
Motherboard
Packard Bell IPISB-AG
Memory
3.00 GB
Graphics Card(s)
(1) Intel(R) HD Graphics (2) VNC Mirror Driver
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
AIO LCD
Screen Resolution
1920 x 1080
Hard Drives
WDC WD10EADX-22TDHB0 ATA Device
Fixed hard disk media
4 partitions
931.51 GB
Keyboard
Wireless
Mouse
Wireless
Antivirus
Microsoft Security Essentials
Browser
IE; Firefox
Other Info
Also:
Samsung N220 Plus Netbook - Windows 7 Home
HP laptop
iPad 5
Back
Top