Insert several Autotext items in order - vba Word -


i working macro enable word 2016. have macro insert several autotext entries (4) entered in loop. portion working ok notice not entered in order.

the reason why they're not entered in order because in each loop iteration reference specific bookmark (as range). wonder if there way update range @ each iteration autotext entries entered 1 after other ones?

thank you!

after trial , error, found way this. did following:

  • moved selection (cursor) desired bookmark
  • insert autotext @ selection.range location
  • for next items, used selection.range instead of using bookmark, since selection (cursor) update i'm adding text.

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -