olNavigation Folder

  • Thread starter Thread starter Praising Jesus
  • Start date Start date
Status
Not open for further replies.
P

Praising Jesus

I am using the beta of Microsoft Office 2010 x64. I am trying to write VBA so

a user can control messages with attachments, in particular, to be able to

select messages or an outlook folder and then specify where to save the

attachments. I have managed to put together some code that allows the user to

select a folder and place the attachments in a folder I hard code, but I

haven't been able to gogure out how to give them a dialog where they can

select/create a folder of their choosing. Does such a thing exist in VBA 2010?

Using the Object Browser I found a series of methods in the olObjectClass

called:

olNavigation Folder

olNavigation Folders

olNavigationGroup

olNavigationGroups

olNavigationModule

olNavigationModules

However I can find no information on MSDN or even in the universe of a

Google search. Are these methods that I can use to develop a dialog or is

there something else that can do the job? I realize I could give them a

TextBox to avoid hard coding, but that's hardly elegant.

Any help on creating a file dialog would be appreciated.

---Mike

p.s. I realize I could do this in Visual Studio Express, but then I would

have to make 32 and 64 bit versions, where in VBA the code will work in

whatever version you have.
 
Those are enumeration members and have nothing to do with file dialogs.

VBA code doesn't really have anything for file dialogs, usually if that was

needed people would make Win32 API calls to work with the common dialog

functions. For only file accesses people use Windows scripting to do

saves/loads/etc.

Outlook VBA is intended for personal macros and prototyping, not deployment.

The recommended approach for deploying code is to write COM addins.

"Praising Jesus" <PraisingJesus> wrote in message

news:BF3633FF-8122-4A7D-A175-2BBB7481BA74@microsoft.com...
> I am using the beta of Microsoft Office 2010 x64. I am trying to write VBA
> so
> a user can control messages with attachments, in particular, to be able to
> select messages or an outlook folder and then specify where to save the
> attachments. I have managed to put together some code that allows the user
> to
> select a folder and place the attachments in a folder I hard code, but I
> haven't been able to gogure out how to give them a dialog where they can
> select/create a folder of their choosing. Does such a thing exist in VBA
> 2010?

> Using the Object Browser I found a series of methods in the olObjectClass
> called:

> olNavigation Folder
> olNavigation Folders
> olNavigationGroup
> olNavigationGroups
> olNavigationModule
> olNavigationModules

> However I can find no information on MSDN or even in the universe of a
> Google search. Are these methods that I can use to develop a dialog or is
> there something else that can do the job? I realize I could give them a
> TextBox to avoid hard coding, but that's hardly elegant.

> Any help on creating a file dialog would be appreciated.

> ---Mike

> p.s. I realize I could do this in Visual Studio Express, but then I would
> have to make 32 and 64 bit versions, where in VBA the code will work in
> whatever version you have.
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A How to open Excel file saved in Outlook folder? Outlook VBA and Custom Forms 5
Victor_50 Outlook 365 Jump to folder Outlook VBA and Custom Forms 3
A OL24 Calendar folder pane too narrow Using Outlook 9
E "Cannot display the folder. MS Outlook cannot access the specified file location" Using Outlook 8
S How to get the actual Public Folder path from Favourites Folders Outlook VBA and Custom Forms 3
D.Moore Outlook COM addins source folder Using Outlook 12
M Folder names - rich text Using Outlook 6
E Gmail folder -why, in .ost IMAP situation, as well as Googlemail folder? Using Outlook 0
J Saving Send emails to a folder on the server Outlook VBA and Custom Forms 65
J Outlook 2019 Pick the Folder Location to save send emails Outlook VBA and Custom Forms 0
macdotcom Outlook 365 Outlook folder export to PST archival tool - close, but need a nudge Outlook VBA and Custom Forms 2
B How to get PST folder datetime? Outlook VBA and Custom Forms 1
M Search message, then (1) Jump to folder & (2) Select message that you searched for Outlook VBA and Custom Forms 6
G Search Folders and Jump to Folder Outlook VBA and Custom Forms 2
X Run macro automatically when a mail appears in the sent folder Using Outlook 5
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
P Yahoo/IMAP folder rename by Outlook desktop 365 Using Outlook 0
A Outlook 2019 folder counter Using Outlook 0
A Search folder and move the email Outlook VBA and Custom Forms 0
N Reply to Outlook messages by moving messages to a specific Outlook folder Outlook VBA and Custom Forms 1
T How to find or display the sub-folder name for an Archive Search Using Outlook 10
A Outlook 365 (OutLook For Mac)Move "On My Computer" Folder Items From Old To New Mac Computer Using Outlook 4
P Search folder: all emails sent to or from a domain Using Outlook 1
V Folder Properties - Gmail account can't switch Using Outlook 5
Victor_50 Outlook 2019 Jump to folder from search folder Outlook VBA and Custom Forms 0
HarvMan Outlook 365 - Rule to Move an Incoming Message to Another Folder Using Outlook 4
S Email Macros to go to a SHARED Outlook mailbox Draft folder...NOT my personal Outlook Draft folder Using Outlook 2
I Help with Smart Folder + Query Builder on IMAP Using Outlook 0
S Paperclip icon shows without attachment in email under Sent folder Using Outlook 0
Kika Melo Outlook Calendar deleted appointments not in Deleted Items folder Using Outlook 3
K vba code to auto download email into a specific folder in local hard disk as and when any new email arrives in Inbox/subfolder Outlook VBA and Custom Forms 0
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 6
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
CWM330 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 1
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

Similar threads

Back
Top