ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   Can I use Merge Fields in Excel Headings? (https://www.excelbanter.com/setting-up-configuration-excel/174891-can-i-use-merge-fields-excel-headings.html)

Jeanette

Can I use Merge Fields in Excel Headings?
 
I would like to use an actual cell item in a heading. Is this possible? So
far all I get is the actual formula.

Matt Richardson

Can I use Merge Fields in Excel Headings?
 
On Jan 29, 8:40 pm, Jeanette
wrote:
I would like to use an actual cell item in a heading. Is this possible? So
far all I get is the actual formula.


Try this link, which explains how to do it using VBA code:-

http://www.cpearson.com/excel/headfoot.htm

HTH
Matt Richardson
http://teachr.blogspot.com

Gord Dibben

Can I use Merge Fields in Excel Headings?
 
Jeanette

Take your pick from these macros or combine parts of each into one.

Sub CellInFooter()
With ActiveSheet
.PageSetup.CenterFooter = .Range("A1")
End With
End Sub

Sub Cell_In_AllFooters()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
ws.PageSetup.CenterFooter = ws.Range("A1")
Next
End Sub

Sub CellInFooter22()
With ActiveSheet.PageSetup
.LeftFooter = "&""Algerian,Regular""&16" & Range("A1")
End With
End Sub


Gord Dibben MS Excel MVP

On Tue, 29 Jan 2008 12:40:04 -0800, Jeanette
wrote:

I would like to use an actual cell item in a heading. Is this possible? So
far all I get is the actual formula.




All times are GMT +1. The time now is 05:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com