+ Reply to Thread
Results 1 to 3 of 3

determining the Directory of an Excel file

  1. #1
    Registered User
    Join Date
    06-27-2007
    Posts
    2

    determining the Directory of an Excel file

    Hi,

    I have an Excel book with an auto_open macro. To determine the directory of this Excel File I have used the CurDir() function. It works correctly when the Excel file is the only one which is opened. It also works correctly when there are other Excel files without macros opened. But if there is another file containing macros opened, CurDir supplies the directory of the other file.

    I need a robust method to determine the directory of the Excel file. Could anyone please help me?

    Thanks,

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    What about something like

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-27-2007
    Posts
    2
    Yes, it works !!! So simple, so good !!!

    Thank you, thank you, thank you !!!

+ 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