Thread: Header & Footer
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default Header & Footer

Hi Mark
use something like

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


--
Regards
Frank Kabel
Frankfurt, Germany


Mark wrote:
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