ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Print signature lines as footer (https://www.excelbanter.com/excel-programming/306479-print-signature-lines-footer.html)

goss[_31_]

Print signature lines as footer
 
Hi ng
Using xl 2003

Using nodupes to print employee timesheets
(An individual sheet prints for each employee based on name in col A)

Would like to also print signature lines at bottom of each report

Tried this,not working

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Application.ScreenUpdating = False
Sheets("mytools").Select
Set myfooter = Range("A11:F16")

ActiveSheet.PageSetup.RightFooter = myfooter

End Sub

The data to be printed is on Time_Entry!

The footer should have line for employee signature and another line fo
mgr signatur

--
Message posted from http://www.ExcelForum.com


William[_2_]

Print signature lines as footer
 

Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Not ActiveSheet.Name = "Time_Entry" Then Exit Sub
Dim r As Range, s As String, c As Range, i As Integer
With Sheets("mytools")
Set r = .Range("A10:F10")
For i = 1 To 6
For Each c In r.Offset(i, 0)
s = s & " " & c
Next c
s = s & vbNewLine
Next i
End With
Sheets("Time_Entry").PageSetup.RightFooter = s
End Sub
--
XL2002
Regards

William



"goss " wrote in message
...
| Hi ng
| Using xl 2003
|
| Using nodupes to print employee timesheets
| (An individual sheet prints for each employee based on name in col A)
|
| Would like to also print signature lines at bottom of each report
|
| Tried this,not working
|
| Private Sub Workbook_BeforePrint(Cancel As Boolean)
| Application.ScreenUpdating = False
| Sheets("mytools").Select
| Set myfooter = Range("A11:F16")
|
| ActiveSheet.PageSetup.RightFooter = myfooter
|
| End Sub
|
| The data to be printed is on Time_Entry!
|
| The footer should have line for employee signature and another line for
| mgr signature
|
|
| ---
| Message posted from
http://www.ExcelForum.com/
|




All times are GMT +1. The time now is 04:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com