Excel headers/footers won't change via VBA unless blank

后端 未结 4 589
情歌与酒
情歌与酒 2020-12-19 03:36

Disclaimer: It\'s been a few years since I worked (a lot) with VBA, so this might be an issue caused by confusing myself with what is essentially a very different language f

4条回答
  •  半阙折子戏
    2020-12-19 04:28

    I split the sheet print setup into 2 loops. First loop with Application.PrintCommunication = False I run the non-header/footer setup. I then set Application.PrintCommunication = True and run the header/footer setup in a second loop. Appears to run faster than in XL2003, and applies the header/footer correctly. Until MS fixes this bug, that works fine for me.

提交回复
热议问题