Results 1 to 3 of 3

Thread: replicate directorylistbox and filelistbox??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    MA
    Posts
    20

    Question replicate directorylistbox and filelistbox??

    How do I replicate the functionality of the directorylistbox and filelistbox in VBA. These objects are available in VB6 but don't seem to be available w/VBA in XCEL.

    ANY IDEAS???

    Thanks in ADVANCE,
    Richard

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    Several standard Excel dialogs are available via code.
    This one is to open files :-

    rsp = Application.GetOpenFilename
    if rsp ="" Then End
    FileOpenedWas = rsp
    Regards
    BrianB
    -------------------------------

  3. #3
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    PS.

    Use the Microsoft Common Dialog Control.
    '-------------------------------------------------------------
    Excel has a Dialogs() collection
    '---------------------------------------------------------
    There is an API coding too complicated for here.
    Do a google search for Excel Folder Browse
    '--------------------------------------------------------------
    Regards
    BrianB
    -------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width