Haeder/Footer param

  • Thread starter Thread starter Erik Creyghton
  • Start date Start date
E

Erik Creyghton

One can insert variables like &File or &Date in a header/footer description.
I tried to pick up a reference to a cell in the header/footer and did not
succeed.
Is there a trick to do this ?
Regards,
Erik
 
You can build the footer string using VBA in the beforeprint event. In that
case, you would do

Activesheet.PageSetup.LeftFooter = _
"formatting string " & ActiveSheet.Range("B9").Text & " more formatting
string"
 
Hi
can be done only with VBA. e.g.

with activesheet
.pagesetup.centerfoort=.range("A1").value
end with
 
Erik

You will have to do this using VBA.

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

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top