Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default directory browse...

Hello

Is there a control that I can use in a VBA form to allow the user to browse
the directory structure?

I know about the common dialog control, and assigning initdir and filtering,
etc.

However, there is a place where the user will need to pick two files... it
seems easier to have them pick them both in a form, if possible, than to
sequentially select them on two FileOpen dialog boxes.

Thanks,
Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default directory browse...

Use GetOpenFileName built-in dialog box, and set the MultiSelect
property to True. That would work if the files are in the same folder.
If they are in separate folders, you might need two dialog boxes.



*** Sent via Developersdex http://www.developersdex.com ***
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default directory browse...

Mark

There is no intrinsic VBA control available for directory browsing.

Alok

"mark" wrote:

Hello

Is there a control that I can use in a VBA form to allow the user to browse
the directory structure?

I know about the common dialog control, and assigning initdir and filtering,
etc.

However, there is a place where the user will need to pick two files... it
seems easier to have them pick them both in a form, if possible, than to
sequentially select them on two FileOpen dialog boxes.

Thanks,
Mark

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default directory browse...

You want to look up file systems objects in help or on MSDN. You may also
want to take a look at the Microsoft Scripting Runtime reference. This should
head you in the right direction. MSDN can be a bit of a pain but in my
opinion it is a necessary evil so get used to it now and save yourself some
time...

HTH

"mark" wrote:

Hello

Is there a control that I can use in a VBA form to allow the user to browse
the directory structure?

I know about the common dialog control, and assigning initdir and filtering,
etc.

However, there is a place where the user will need to pick two files... it
seems easier to have them pick them both in a form, if possible, than to
sequentially select them on two FileOpen dialog boxes.

Thanks,
Mark

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default directory browse...

Okay, thanks for the comments, guys.

I'm familiar with most of the suggestions... was just wanting to make sure I
hadn't missed something better.

Mark
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to browse Add-ins???? [email protected] Excel Discussion (Misc queries) 1 March 5th 08 08:47 PM
Creating a macro that lists directory names within a directory.... Andy Excel Programming 4 November 28th 04 06:13 AM
Directory Browse/Search information ZH875 Excel Programming 1 October 4th 04 10:05 PM
Browse For Folder start directory Todd Huttenstine Excel Programming 2 May 12th 04 02:24 PM
Check if directory empty OR no of files in directory. Michael Beckinsale Excel Programming 2 December 4th 03 10:12 PM


All times are GMT +1. The time now is 06:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"