can I use a cell content to auto-populate to a header in excel?
Sub CellInHeader()
With ActiveSheet
.PageSetup.CenterHeader = .Range("A1").Value
End With
End Sub
Sub CellInHeaderr22()
With ActiveSheet.PageSetup
.LeftHeader = "&""Algerian,Regular""&16" & Range("A1").Value
End With
End Sub
Sub Cell_In_All_Headers()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
ws.PageSetup.CenterHeader = ws.Range("A1").Value
Next
End Sub
Gord Dibben MS Excel MVP
On Wed, 17 Jun 2009 12:53:01 -0700, DaveC
wrote:
any help on this? I would like to use the contents of a cell to auto-populate
the header. Thanks for any assit.
|