Headers and footers are linked separately. My class h namespace n class my class public. For chart sheets or charts you can work with headers and footers in the page setup dialog.