开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜