• Subject: changing locating inbox Via VB HELP
  • Author: Rivers
  • Date: 01 Jul
  • References:
hi all i have this macro i gained from
http://www.fontstuff.com/outlook/oltut01.htm to remove all attatchments from
my emails and putting them directly into a folder selected by myself but this
works only for my default mailbox however i would like to change this to
another account as tis is required onl for this inbox. the code is as follows

Dim ns As NameSpace
Dim Inbox As MAPIFolder
Dim SubFolder As MAPIFolder
Dim Item As Object
Dim Atmt As Attachment
Dim FileName As String
Dim i As Integer
Dim varResponse As VbMsgBoxResult
Set ns = GetNamespace("MAPI")
Set Inbox = ns.GetDefaultFolder(olFolderInbox)

i believe i need to change something on the last line
Set Inbox = ns.GetDefaultFolder(olFolderInbox)
but dont understand or no what the code is. im not at all affuent in VBA
coding for Outlook but have some understanding for excel and access so any
help would be appreciated.

thanks

Rivers
01 Julchanging locating inbox Via VB HELP.Rivers
01 Jul\ Re: changing locating inbox Via VB HELP.Ken Slovak - [MVP - O...
01 Jul   \ Re: changing locating inbox Via VB HELP.Rivers
01 Jul      \ Re: changing locating inbox Via VB HELP.Ken Slovak - [MVP - O...
02 Jul         \ Re: changing locating inbox Via VB HELP.Rivers
02 Jul            \ Re: changing locating inbox Via VB HELP.Ken Slovak - [MVP - O...
02 Jul               \ Re: changing locating inbox Via VB HELP.Rivers
All times are in (US) Eastern Daylight Time (GMT -4:00)