How do I reference a cell to automatically update in a header

  • Follow


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


1 Replies
837 Views

(page loaded in 0.106 seconds)


Reply: