+ Reply to Thread
Results 1 to 5 of 5

Open an excel file starting from the same directory

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    24

    Open an excel file starting from the same directory

    Please Login or Register  to view this content.
    I am using the above code to open and load a number of files into my worksheets, but I need the open file dialog box to start from the current directory instead of the default.
    I still want the user to have the option of selecting a different file or directory, but as most will have the csv files in the same directory as the running workbook, I wanted the code to start the dialog box from that location (wherever it may be).
    What do I need to change to get this the happen?

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Open an excel file starting from the same directory

    You could try with:
    Please Login or Register  to view this content.
    ù
    Regards,
    Antonio

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Open an excel file starting from the same directory

    You could try with:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  4. #4
    Registered User
    Join Date
    08-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Open an excel file starting from the same directory

    Quote Originally Posted by antoka05 View Post
    You could try with:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Thanks. I tried this but it still opened the UI at the default (user\documents) instead of the location of the workbook.
    Despite the path being correct when checked in the immediate pane.

  5. #5
    Registered User
    Join Date
    08-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Open an excel file starting from the same directory

    further information. in case anyone wants to help. I am running Excel 2010 on a windows 7, 64bit PC.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 02-09-2016, 06:14 PM
  2. Replies: 1
    Last Post: 04-18-2013, 11:26 AM
  3. Replies: 5
    Last Post: 09-29-2012, 12:40 PM
  4. [SOLVED] Help with Open File from Directory
    By MarianneBal in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-27-2012, 10:18 AM
  5. Find File in Directory(s) and Open Folder highlighting file
    By cpadude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2010, 05:39 AM
  6. Excel change directory/file open macro
    By john.palmer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2007, 09:43 AM
  7. Excel Slow File Open Directory Response
    By Dave P in forum Excel General
    Replies: 0
    Last Post: 09-29-2005, 09:05 PM

Tags for this Thread

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