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

olNavigation Folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 1st 10, 05:09 PM posted to microsoft.public.outlook.program_vba
Praising Jesus[_2_]
external usenet poster
 
Posts: 1
Default olNavigation Folder

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.

Ads
  #2  
Old May 1st 10, 07:28 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default olNavigation Folder

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Praising Jesus" wrote in message
...
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.


 




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
Default folder to Public folder when Exporting outlook form data toexcel Cass Outlook - General Queries 1 January 11th 08 01:33 PM
Cannot display the folder. Microsoft Office Outlook cannot access thespecified folder location. Boppy Outlook - General Queries 1 December 19th 07 01:16 AM
Public Folder/Folder Assistant Forwarding email w/o original sender name xtremluck Outlook - General Queries 2 December 20th 06 09:57 PM
activate contact folder from public folder with "show this folder as email address book using a prf file Frankie K. Outlook - Using Contacts 7 July 25th 06 06:37 PM
Create a search folder to look at all emails in one folder and selected criteria in other folders [email protected] Outlook - General Queries 1 April 10th 06 10:40 AM


All times are GMT +1. The time now is 05:12 PM.


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.