开发者

VBA: Word 2010 - Close Header & Footer Tools with VBA

开发者 https://www.devze.com 2023-01-12 20:45 出处:网络
I\'m using a macro, which inserts a text into the footer. After the macro has finished, the Header & Footer Tools are active, so I\'m in the开发者_Go百科 editing mode for the footer. Does anyone k

I'm using a macro, which inserts a text into the footer. After the macro has finished, the Header & Footer Tools are active, so I'm in the开发者_Go百科 editing mode for the footer. Does anyone know how to close this editmode with VBA?

Thanks


In Word 2007

    ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument

I don't have W 2010 at hand to test. If it doesn't work, please post a comment and I'll delete the answer.

HTH

0

精彩评论

暂无评论...
验证码 换一张
取 消