+ Reply to Thread
Results 1 to 3 of 3

full path of excel file

  1. #1
    Song
    Guest

    full path of excel file

    how to show the full path of excel file in the foot of page while printing?
    excel 2K only gives me the option for the name of the file not the full path.

  2. #2
    Bob Phillips
    Guest

    Re: full path of excel file

    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    With activepage.PageSetup
    .LeftFooter = ThisWorkbook.FullName
    End With
    End Sub

    'This is workbook event code.
    'To input this code, right click on the Excel icon on the worksheet
    '(or next to the File menu if you maximise your workbooks),
    'select View Code from the menu, and paste the code


    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Song" <Song@discussions.microsoft.com> wrote in message
    news:05B206AC-0D96-4D6D-9E1F-DC23FBA3DF08@microsoft.com...
    > how to show the full path of excel file in the foot of page while

    printing?
    > excel 2K only gives me the option for the name of the file not the full

    path.



  3. #3
    Bob Phillips
    Guest

    Re: full path of excel file

    Typo, should be

    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    With ActiveSheet.PageSetup
    .LeftFooter = ThisWorkbook.FullName
    End With
    End Sub


    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    news:OwCjBilpFHA.3156@TK2MSFTNGP10.phx.gbl...
    > Private Sub Workbook_BeforePrint(Cancel As Boolean)
    > With activepage.PageSetup
    > .LeftFooter = ThisWorkbook.FullName
    > End With
    > End Sub
    >
    > 'This is workbook event code.
    > 'To input this code, right click on the Excel icon on the worksheet
    > '(or next to the File menu if you maximise your workbooks),
    > 'select View Code from the menu, and paste the code
    >
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Song" <Song@discussions.microsoft.com> wrote in message
    > news:05B206AC-0D96-4D6D-9E1F-DC23FBA3DF08@microsoft.com...
    > > how to show the full path of excel file in the foot of page while

    > printing?
    > > excel 2K only gives me the option for the name of the file not the full

    > path.
    >
    >




+ 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