Header & Footer

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I am using Excel 97.

Is there a way to capture the contents of the
CenterHeader & CenterFooter on a worksheet and use them
programmatically in VBA elsewhere?

If so, can someone assist with some code, please?

Regards


Mark
 
Hi Mark
use something like

sub foo()
dim vfooter
with activesheet.pagesetup
vfooter=.centerfooter
end with
msgbox vfooter
end sub
 

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