Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Printing a User

john:
Application.UserName would return the name in the excel properties, which
necessarily wouldn't be the name of who's actually logged in.

i know one of my client's has the same name in all 40 copies of excel.
--


Gary


"John Bundy" (remove) wrote in message
...
On the thisworkbook section of your vba properties place this, change sheet
and hide or not as needed.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim lastCell As Long
lastCell = Sheets("sheet3").Cells(Rows.Count, "A").End(xlUp).Row
Sheets("sheet3").Cells(lastCell + 1, 1) = Application.UserName & ", " & Now()
End Sub

--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Dan" wrote:

When a user prints a spreadsheet I would like to be able to put somewhere on
the page the name of the user that the spreadsheet was printed by. I assume
this is a simple process, but just can't figure it out.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing a User Ron de Bruin Excel Programming 5 January 27th 07 07:48 PM
User printing Frank Rudd via OfficeKB.com Excel Discussion (Misc queries) 5 July 25th 05 09:55 PM
Printing Part of User Form mully New Users to Excel 1 May 26th 05 08:22 AM
Printing a User Form mully New Users to Excel 6 May 19th 05 01:26 PM
Printing User Forms mickiedevries[_7_] Excel Programming 7 June 29th 04 06:06 PM


All times are GMT +1. The time now is 04:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"