View Single Post
 
Old 05-19-2016, 03:48 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

It is more useful to write IN the bookmark, which enables the content to be changed, for which you can look at the FillBM function on my web site.

The code you quote
Code:
ActiveDocument.Bookmarks("MybookmarkName").Range.InsertBefore "toto"
will write before the named bookmark 'MybookmarkName', the text 'toto' What other hints do you require?
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote