Closed Thread
Results 1 to 3 of 3

active workbook path

  1. #1
    Registered User
    Join Date
    05-03-2007
    Posts
    26

    active workbook path

    Dear Experts

    How to findout parent folder of active workbook?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    This will only work on a workbook that is already saved:

    Please Login or Register  to view this content.
    To shorten the formula, you could put

    =CELL("filename") in any cell, let's say A1. Then, for the formula above replace all instances of CELL("filename") with A1.

    Note: Do not change "filename" to your file's name. It literally needs to say "filename" including the quotes.

    This formula will give you the full path up to the last "\" before the workbook's name, e.g. "C:\Documents and Settings\pjoaquin\my documents\examples\"

  3. #3
    Forum Contributor
    Join Date
    11-23-2005
    Location
    Perth, Australia
    Posts
    218

    active workbook path

    Alternatively in vba :

    Please Login or Register  to view this content.
    Again, the workbook needs to have been saved for this to work

Closed 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