Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
- Selection.Copy
- Selection.MoveRight Unit:=wdCharacter, Count:=1
- Selection.TypeText Text:=" (page "
- Selection.PasteAndFormat (wdFormatOriginalFormatting)
- Selection.TypeText Text:=")"
- Selection.MoveLeft Unit:=wdCharacter, Count:=1
- Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
- ActiveWindow.View.ShowFieldCodes = Not ActiveWindow.View.ShowFieldCodes
- Selection.MoveLeft Unit:=wdCharacter, Count:=4
- Selection.MoveRight Unit:=wdCharacter, Count:=8
- Selection.MoveLeft Unit:=wdCharacter, Count:=3
- Selection.TypeText Text:="PAGE"
- ActiveWindow.View.ShowFieldCodes = Not ActiveWindow.View.ShowFieldCodes
- Selection.Fields.Update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement