Pick Folder Substitute-----IMP AND URGENT

Status
Not open for further replies.

ankit

Member
Outlook version
Outlook 2010 32 bit
Email Account
Hi,

i have outlook installed on my machine that has 4 mailbox in it( one is my default inbox, other three are my work related exchange server mailboxes)

i have created a tool, that creates an excel file of emails marked with a specific category for a specified date range

MY PROBLEM:-

to choose mailbox from which email is required

Temp solution:- i have used pick folder , which works absolutely fine

:cool:

[Set objNameSpace = objAppl.GetNamespace("MAPI")

Set ContactsFolder = objNameSpace.PickFolder]

Work Around:- i want to hard code it to second account's inbox folder, which i am unable to do

:mad:

can anyone help me with this

Regards,

GUPTA Ankit
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange

reubendayal

Senior Member
Outlook version
Outlook 365 64 bit
Email Account
Office 365 Exchange
Are they actual accounts or secondary mailboxes (managed mailboxes)?

If an actual account, check out the second macro: Macro using a specific account. The code will check all of the accounts in the list and choose the one that matches the address string.

The macro at Send email from another address using VBA may work for a managed mailbox.

Hi Diane,

Good day!

Can you suggest an alternate to the pickfolder function? I have two email accounts at work but the pickfolder function opens my default mailbox. while I need it to open the other mailbox, which my colleague and I share when working. Any suggestions will be appreciated.

Thank you.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
L However, before you place an order, you want to pick out whether or not you want the to Using Outlook 0
T Pick-a-Meeting in Outlook 365 Using Outlook 2
G How do I create a custom pick list in VB for an outlook automated email? Outlook VBA and Custom Forms 1
Diane Poremsky How to Create a Pick-a-Meeting Request Using Outlook 0
E Automatically pick up Recipient's Name on the Body of the Email Message Using Outlook 1
B Llimit the number of people accepting one of the "pick a date" meeting Using Outlook 1
B Best way to get a pick-list on a form? Outlook VBA and Custom Forms 1
Q Email Address from Pick List Outlook VBA and Custom Forms 4
S Pick from list to use in a field Outlook VBA and Custom Forms 2
Z Outlook 365 Automatically assign categories to incoming mail in a shared folder Round Robin Outlook VBA and Custom Forms 1
G Adding a contact to a specific folder Using Outlook 0
Witzker Outlook 2019 Macro GoTo user defined search folder Outlook VBA and Custom Forms 7
Rupert Dragwater Duplicate email in Folder Using Outlook 7
S Adding a recipient's column to Sent folder in Outlook 2010 Outlook VBA and Custom Forms 1
L "Insert Pictures" Button-Wrong Folder Using Outlook 5
C Outlook 365 Copy/Save Emails in Folder Outside Outlook to Show Date Sender Recipient Subject in Header Using Outlook 0
Christopher M Outlook 365 Hey Diane! MS 365 Biz Standard and "Potential Spam" addressed to others coming to my JUNK folder? Using Outlook 2
J Quick steps delete original email and move reply/sent email to folder Using Outlook 2
A manual rule sends mail to wrong folder Using Outlook 5
richardwing Auto forward email that is moves into a specific outlook folder Outlook VBA and Custom Forms 5
D This folder up to date vs all folders up to date Using Outlook 1
G Automatically delete messages in the synchronization folder Outlook VBA and Custom Forms 2
wayneame Changing the Form Used by Existing Task Items in a Folder Outlook VBA and Custom Forms 4
S Need code to allow defined starting folder and selection from there to drill down Outlook VBA and Custom Forms 10
P Emails assigned with a certain category (within a shared inbox) to be copied to a specific folder. Outlook VBA and Custom Forms 2
M Saving emails using Visual Basic - Selecting folder with msoFileDialogFolderPicker Outlook VBA and Custom Forms 6
B Search and Find Email by Folder Name Outlook VBA and Custom Forms 2
S Folder Pane Colour Categories Using Outlook 6
Victor.Ayala Automated way to check the option "Show this folder as an email Address Book" Outlook VBA and Custom Forms 2
NVDon Create new Move To Folder list Outlook VBA and Custom Forms 0
M Extract "Date sent" from emails (saved to folder using drag and drop) Outlook VBA and Custom Forms 1
O Cannot expand the folder. The set of folders cannot be opened. You do not have permission to log on. Using Outlook 1
F Jump to Inbox folder when click on Favorite Using Outlook 8
P Print attachments automatically and move the mail to an existing folder called "Ted" Outlook VBA and Custom Forms 4
lcarpay Stay in the mail folder pane after ctrl-1 Using Outlook 1
T Macro to move reply and original message to folder Outlook VBA and Custom Forms 6
F VBA to move email from Non Default folder to Sub folders as per details given in excel file Outlook VBA and Custom Forms 11
bhamberg Shortcuts in Folder Pane (Outlook 2016) Using Outlook 19
G VBA to save selected Outlook msg with new name in selected network Windows folder Outlook VBA and Custom Forms 1
P Posts in Folder No Longer Group by Conversation Column After Search Using Outlook 0
Y Filter unread emails in a search folder vba help Outlook VBA and Custom Forms 0
N contact list seen in Contact folder but knot in Address book or when 'TO' button is clicked in new email Using Outlook 0
D How to remove a folder, option grayed out Using Outlook 4
D How To Combine Share Task Folders in just one Folder Using Outlook 0
G Retention Policy for Outlook.com Deleted Items folder Using Outlook 0
Z Outlook 365 delete reminder you can’t make change to contents of this-read only folder Using Outlook 4
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 1
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 2
S Outlook (2016 32bit; Gmail IMAP) - Save sent message to Outllook Folder Outlook VBA and Custom Forms 0
D Move Email with Attachment to Folder Outlook VBA and Custom Forms 3

Similar threads

Top