A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can I use Merge Fields in Excel Headings?



 
 
Thread Tools Display Modes
  #1  
Old January 29th, 2008, 08:40 PM posted to microsoft.public.excel.setup
Jeanette
external usenet poster
 
Posts: 52
Default 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.
  #2  
Old January 30th, 2008, 12:56 PM posted to microsoft.public.excel.setup
Matt Richardson
external usenet poster
 
Posts: 58
Default 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
  #3  
Old January 30th, 2008, 07:29 PM posted to microsoft.public.excel.setup
Gord Dibben
external usenet poster
 
Posts: 20,252
Default 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.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.