I recorded a macro to setup the page for printing with the:
file name as the center header
sheet name as the right header
row and column headings printed (the column letters and the row numbers)
gridlines shown
orientation landscape.
The code does not work correctly when I re-run it. It produces “&R” as the center header and DOES NOT print the comments in place. Oddly, when I delete the following lines, it does work:
Application.PrintCommunication = False
Application.PrintCommunication = True
Any ideas why? The recorded code (after removing extraneous lines) is below.
Thank you.
Bookmarks