The center section of the footer.
The center section of the header.
The left section of the footer.
The left section of the header.
The right section of the footer.
The right section of the header.
Optionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsSets the whole footer. "" removes it.
Optionaloptions: ITransaction.OperationOptionsSets the whole header. "" removes it.
Optionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptions
One set of a header and a footer, each with a left, center and right section.
Remarks
Shaped after Office Scripts'
HeaderFooter. Text uses Excel's codes:&Ppage number,&Npage count,&Ddate,&Ttime,&Ffile name,&Asheet name,&Zfile path,&Ga picture,&Bbold,&Iitalic,&Uunderline,&"Font,Style",&12size,&KFF0000color, and&&for an ampersand.A header or footer is kept as one string, as Excel stores it, with
&L,&Cand&Rmarking where each section starts; getHeader returns it whole. Text before any section mark is the center section, and a section marked twice reads as its parts joined, which is how Excel reads them. A string is kept exactly as read until a section of it is set, when it is rebuilt in Excel's order: left, center, right.