B
Bdavis
I am using the following macro to creat header/footers:
Sub Footer()
'
' Footer Macro
With ActiveSheet.PageSetup
.LeftHeader = ActiveSheet.Range("b2").Text & _
ActiveSheet.Range("b3").Text & _
ActiveSheet.Range("b4").Text
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = "&""Times New
Roman,Bold""Confidential Draft"
.CenterFooter = "&""Times New Roman,Bold""&P of &N"
.RightFooter = ""
End With
End Sub
As you can see, the left header is created by combining
three cells on the active sheet. What I'd like to do (and
can't figure out) is to put carrage returns between those
three lines and pull the formatting of the referenced
cells inot the header. I thought the above code would do
that but it doesn't seem to work... the header remains
unformatted.
Thanks!
Sub Footer()
'
' Footer Macro
With ActiveSheet.PageSetup
.LeftHeader = ActiveSheet.Range("b2").Text & _
ActiveSheet.Range("b3").Text & _
ActiveSheet.Range("b4").Text
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = "&""Times New
Roman,Bold""Confidential Draft"
.CenterFooter = "&""Times New Roman,Bold""&P of &N"
.RightFooter = ""
End With
End Sub
As you can see, the left header is created by combining
three cells on the active sheet. What I'd like to do (and
can't figure out) is to put carrage returns between those
three lines and pull the formatting of the referenced
cells inot the header. I thought the above code would do
that but it doesn't seem to work... the header remains
unformatted.
Thanks!