V
Vivian Carroll
In Word 2002 I have a macrobutton in the footer of the document that is
intended to delete the paragraph containing the macro button, return to the
main document, and then run another macro. Below is the entire code. When I
"step" through it, the footer closes as expected, but when I double-click
it, the paragraph with the macro button is deleted as desired, but the
cursor stays in the footer. What can I do to make the footer close?
With Selection
.MoveRight Unit:=wdCharacter, Count:=1
.Expand Unit:=wdParagraph
.Delete
End With
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
Application.Run MacroName:="Find_Next_Caret"
TIA, Vivian
intended to delete the paragraph containing the macro button, return to the
main document, and then run another macro. Below is the entire code. When I
"step" through it, the footer closes as expected, but when I double-click
it, the paragraph with the macro button is deleted as desired, but the
cursor stays in the footer. What can I do to make the footer close?
With Selection
.MoveRight Unit:=wdCharacter, Count:=1
.Expand Unit:=wdParagraph
.Delete
End With
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
Application.Run MacroName:="Find_Next_Caret"
TIA, Vivian