lodijanssens
New Member
- Joined
- Oct 11, 2016
- Messages
- 3
Hi,
I have this VBA to display the cell A1 in the header of the active worksheet. But how do you display the value of cell A1 of sheet 1 in the header of all worksheets?
And how do you display multiple values? For example I want to display A1, B4 and C6 in the header (of the whole workbook).
Thanks a lot!! I'm stuck as a beginner
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
ActiveSheet.PageSetup.LeftFooter = Range("A1").Text
End Sub
I have this VBA to display the cell A1 in the header of the active worksheet. But how do you display the value of cell A1 of sheet 1 in the header of all worksheets?
And how do you display multiple values? For example I want to display A1, B4 and C6 in the header (of the whole workbook).
Thanks a lot!! I'm stuck as a beginner
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
ActiveSheet.PageSetup.LeftFooter = Range("A1").Text
End Sub