VBA: Word 2010 - Close Headers and Footers with VBA

I use a macro that inserts text in the footer. After the macro has finished working, the header and footer are active, so I work in the footer edit mode. Does anyone know how to close this editmode using VBA?

thank

+5
source share
1 answer

In Word 2007

    ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument

I do not have the W 2010 test for testing. If it does not work, send a comment and I will delete the answer.

NTN

+5
source

All Articles