+ Reply to Thread
Results 1 to 6 of 6

User Name put on footer of Printed copy

  1. #1
    Registered User
    Join Date
    11-29-2011
    Location
    MARYLAND
    MS-Off Ver
    Excel 2010
    Posts
    5

    User Name put on footer of Printed copy

    How do you have the user name of a person print out when the individual prints out a spreadsheet. This is the same as "user name" in the "user information" field in MS Word.
    This seems like it should be easy, but I cannot figure it out!

    Thanks,

    Robin

  2. #2
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: User Name put on footer of Printed copy

    Hi, put this code into the ThisWorkbook module

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: User Name put on footer of Printed copy

    accidental duplicate post

  4. #4
    Registered User
    Join Date
    11-29-2011
    Location
    MARYLAND
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: User Name put on footer of Printed copy

    Thank you for your reply! Unfortunately, I cannot get it to work.
    I have opened a new sheet, Alt F11, Selected "This Worksheet", Pasted into Module, Saved, then tried to run the Macro.

    I got "Compile error: Expected End Sub"

    See attachments. I am new to VBA.

    thanks for any suggestions.

    Robin
    Excel Macro 2.pngexcel macro 1.png

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: User Name put on footer of Printed copy

    hi,
    try to goto vb editor, click on This Workbook (left side), in the right side choose Workbook before print
    and copy/paste there the code provided by npamcpp.
    hope it helps you!
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  6. #6
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: User Name put on footer of Printed copy

    In your original code just change one line.

    from:
    Please Login or Register  to view this content.
    to:
    Please Login or Register  to view this content.
    Last edited by rollis13; 05-16-2012 at 05:56 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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