How do I put a specific cells information in the header orfooter.
On Nov 26, 10:38 am, bannshy9
wrote:
I am wondering if it is possible to put the info from a specific cell in a
excel workbook into the Header or Footer
The only way you can include info from a specific cell is to use Excel
VBA:
You can include the value of a cell in the header. For example, the
following code will put the value of cell B5 on Sheet2 into the header
of the activesheet.
ActiveSheet.PageSetup.LeftHeader = _
Format(Worksheets("Sheet2").Range("B5").Value)
|