Update Header on Sheet 3 to Last sheet

W

wbcarter

I want to add a header to Sheet3 to the last sheet. Here is what I hav
so far.

Dim cName As String
Dim ws As Object
cName = Worksheets("Summary").Range("A1").Value
'Declare string variable for Client Name from Summary Page A1
For Each ws In ActiveWorkbook.Worksheets
With ws.PageSetup
.CenterHeader = "&""Arial,Bold""&12" & cName
"&""Arial,Regular""&10" & Chr(10) & "&""Arial,Bold""&A"
.LeftMargin = Application.InchesToPoints(0.5)
.RightMargin = Application.InchesToPoints(0.5)
.CenterHorizontally = True
End With
Next ws
Set ws = Nothin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top