• Insert File and Path in Footer

    Author
    Topic
    #351839

    How do I insert the full path and filename into a footer? I know how to use the custom footer options, I just don’t know how to get the path in there.

    Viewing 1 reply thread
    Author
    Replies
    • #510257

      In the Workbook_BeforePrint event, use a statement like:

      Dim strBook_Path+Name as String
      strBook_Path+Name = ActiveWorkBook.fullname
      ActiveSheet.PageSetup.LeftFooter = strBook_Path+Name

      You can vary the “LeftFooter” statement to be any one of the six Header/Footer locations.

    • #510314

      Check out the ADDPATH add-in on http://www.j-walk.com/ss/%5B/url%5D. I find it’s a convenient way to optionally add the file path to a header or footer.

    Viewing 1 reply thread
    Reply To: Insert File and Path in Footer

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: