+ Reply to Thread
Results 1 to 7 of 7

Path of an opened excel workbook

Hybrid View

  1. #1
    D.S.Rama Rao
    Guest

    Question Path of an opened excel workbook

    How to find the path of an excel workbook immediately after the same work book is opened.

    regards,
    D.S.Rama Rao.
    Last edited by D.S.Rama Rao; 11-25-2010 at 05:02 AM.

  2. #2
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465

    Re: Path of an opened excel workbook

    Hi,

    Go to File>>Properties>>General you will find the Location that is the path of that file.
    __________________
    Regards
    Rahul Nagar
    Founder of www.myshortcutkeys.com.


    If you get the answer of your questions then please click EDIT in your original post then click on GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  3. #3
    D.S.Rama Rao
    Guest

    Re: Path of an opened excel workbook

    Quote Originally Posted by Rahul Nagar View Post
    Hi,

    Go to File>>Properties>>General you will find the Location that is the path of that file.
    Dear rahul nagar,

    The method you have suggeted is for a file which is not opened. i want the method to find the path of a file which is opened.

    I hope the above is clear.

    regards,
    D.S. Rama Rao.

  4. #4
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465

    Re: Path of an opened excel workbook

    Check the attached file.
    Attached Images Attached Images

  5. #5
    D.S.Rama Rao
    Guest

    Re: Path of an opened excel workbook

    Dear Rahul Nagar,
    I Thank you very much for replying to my quests.Perhaps i am not able to express my self correctly my exact requirement . What i want is to find out the path of the opened file in a cell through excel function to enable me to use that cell reference in my subsequent programming of excel work sheet.
    That is as soon as i open the workbook the workbook shall find out in which path it is and compare it whith the path given in another cell and if both are not same notify accordingly.Else workbok should operate normally.
    i hope i have made myself more clear now
    regards
    D S Rama Rao

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Path of an opened excel workbook

    msgbox activeworkbook.fullname
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Path of an opened excel workbook

    =CELL("filename",A1)

    and for just the path
    =LEFT(CELL("filename",A1),SEARCH("[",CELL("filename",A1))-1)
    Cheers
    Andy
    www.andypope.info

+ 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