Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2004

Tip: Looking for answers? Try searching our database.

"Printed by:" in Footer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ruan - 26 May 2004 21:43 GMT
Hello,

Is there a way to display the User who printed the document in the Footer?

Thanks
Ruan
Frank Kabel - 26 May 2004 21:49 GMT
Hi
Put the following code in your workbook module (not in a standard
module):
Private Sub Workbook BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet
  For Each wkSht In me.Worksheets
    With wkSht.PageSetup
       .CenterFooter = "Printed by: " & application.username
     End With
  Next wkSht
End Sub

Signature

--
Regards
Frank Kabel
Frankfurt, Germany


> Hello,
>
> Is there a way to display the User who printed the document in the Footer?
>
> Thanks
> Ruan
Ruan - 27 May 2004 03:28 GMT
Thanks Frank,

That worked really great.

Ruan

> Hi
> Put the following code in your workbook module (not in a standard
[quoted text clipped - 20 lines]
> > Thanks
> > Ruan
CLR - 01 Jun 2004 04:48 GMT
Frank.........
Is this code intended to  return the User that the Excel is installed to, or
the User who signed on the computer?

Vaya con Dios,
Chuck, CABGx3

> Hi
> Put the following code in your workbook module (not in a standard
[quoted text clipped - 20 lines]
> > Thanks
> > Ruan
Frank Kabel - 01 Jun 2004 06:38 GMT
Hi
the first one :-)
For the latter one you'll need a different approach. e.g.

Public Function WinUserName() As String
WinUserName = Environ("UserName")
End Function

Signature

--
Regards
Frank Kabel
Frankfurt, Germany


> Frank.........
> Is this code intended to  return the User that the Excel is installed
[quoted text clipped - 27 lines]
>>> Thanks
>>> Ruan
CLR - 01 Jun 2004 23:25 GMT
Thank you Sir.........another one for my goodie-stash

Vaya con Dios,
Chuck, CABGx3

> Hi
> the first one :-)
[quoted text clipped - 40 lines]
> >>> Thanks
> >>> Ruan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.