Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Path to ActiveWorkbook.FullName (03)

    **Edited to provide the solution***

    Is it possible to determine or extract only the "path" from the "ActiveWorkbook.FullName"?

    Thanks,
    John

    Solution: ActiveWorkbook.Path

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Path to ActiveWorkbook.FullName (03)

    Yes:

    <code>
    Dim strPath As String
    strPath = Left(ActiveWorkbook.FullName, InStrRev(ActiveWorkbook.FullName, ""))
    </code>

    However, this is easier:

    <code>
    Dim strPath As String
    strPath = ActiveWorkbook.Path
    </code>

    The first will have a trailing "", the second will not.
    Legare Coleman

Posting Permissions

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