Hi, I get an Excel file from our accounting system, containing several spreadsheets. I have recorded a macro for the page setup to print it all, and it works, apart from page numbering. I run the macro, but when done, there is no page numbering.
This is part of the macro:
What am I doing wrong?
This is part of the macro:
The last line is supposed to give the page number. While recording the macro I saw that on screen it actually writes "&[Page]", so I tried that as well. Same result. The macro runs, but afterwards there is no numbering.With ActiveSheet.PageSetup
.LeftHeader = "&BBalance Sheet&B" & Chr(10) & "Tel Aviv Hilton"
.CenterHeader = ""
.RightHeader = "&D" & Chr(10) & "renewallage" & Chr(10) & "Page "
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = "&P"
What am I doing wrong?