+ Reply to Thread
Results 1 to 3 of 3

Opening a browse and load file box in a macro

  1. #1
    Scott Calkins via OfficeKB.com
    Guest

    Opening a browse and load file box in a macro

    Currently I have a macro that uses the following line to load a file.
    FileName = InputBox("Please enter the Text File's name, e.g. test.txt")
    What I want is to change this so it has the standard file load box that
    includes the "browse" button and the click on file to choose, etc. The
    files I am loading with this macro are down a few folders and trying to get
    the target path is a pain when I have to type in the whole path.

    --
    Message posted via http://www.officekb.com

  2. #2
    Bob Phillips
    Guest

    Re: Opening a browse and load file box in a macro

    Take a look at GetOpenFilename in help, it is all there.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Scott Calkins via OfficeKB.com" <[email protected]> wrote in
    message news:[email protected]...
    > Currently I have a macro that uses the following line to load a file.
    > FileName = InputBox("Please enter the Text File's name, e.g. test.txt")
    > What I want is to change this so it has the standard file load box that
    > includes the "browse" button and the click on file to choose, etc. The
    > files I am loading with this macro are down a few folders and trying to

    get
    > the target path is a pain when I have to type in the whole path.
    >
    > --
    > Message posted via http://www.officekb.com




  3. #3
    Registered User Ivan F Moala's Avatar
    Join Date
    10-25-2003
    Location
    Auckland, New Zealand
    Posts
    71
    Hi Scott

    have a look @ the getopenFilename function.

    eg
    FileToOpen = Application.GetOpenFilename

    Look in the help files for the properties.
    Kind Regards,
    Ivan F Moala From the City of Sails
    \1

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1