Advertisement
Guest User

Untitled

a guest
May 6th, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
  2. Selection.Copy
  3. Selection.MoveRight Unit:=wdCharacter, Count:=1
  4. Selection.TypeText Text:=" (page "
  5. Selection.PasteAndFormat (wdFormatOriginalFormatting)
  6. Selection.TypeText Text:=")"
  7. Selection.MoveLeft Unit:=wdCharacter, Count:=1
  8. Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
  9. ActiveWindow.View.ShowFieldCodes = Not ActiveWindow.View.ShowFieldCodes
  10. Selection.MoveLeft Unit:=wdCharacter, Count:=4
  11. Selection.MoveRight Unit:=wdCharacter, Count:=8
  12. Selection.MoveLeft Unit:=wdCharacter, Count:=3
  13. Selection.TypeText Text:="PAGE"
  14. ActiveWindow.View.ShowFieldCodes = Not ActiveWindow.View.ShowFieldCodes
  15. Selection.Fields.Update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement