How do I reference a cell in a worksheet to automatically report in a header
or a footer.
|
|
0
|
|
|
|
Reply
|
Utf
|
2/26/2010 3:50:01 AM |
|
I believe it could be accomplished with an Event-Macro at the sheets level.
Assuming B5 Text should be reflected as the Header - try this:
------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$5" Then
ActiveSheet.PageSetup.CenterHeader = [B5]
End If
End Sub
-------------
Micky
"Dan" wrote:
> How do I reference a cell in a worksheet to automatically report in a header
> or a footer.
|
|
0
|
|
|
|
Reply
|
Utf
|
2/26/2010 8:33:01 AM
|
|