Word Macro not finding bookmarks IF they are inside textboxes

  • Hi there! Thank you for taking the time to read my question.


    I am working on a report generator in VBA that runs from a macro-enabled word document, and queries a macro-enabled excel workbook.


    I have managed to get values within specific cells to update bookmarks within the word document.


    However, I get errors that certain bookmarks cannot be found, but only the ones that are within text boxes.


    Here is my code:


    This is the error I am getting:

    Code
    1. Bookmark 'Client1' not found in document
    2. '5555R001.XX.YYMMDD.docm'
    3. Content not updated


    The error repeats for 'Address1' but all the other ones update as expected.


    Thank you and have a good day!

  • Hello,


    When dealing with VBA for Word ... you can jump to[SIZE=12px] Graham Mayor's excellent site :[/SIZE]


    http://www.gmayor.com/word_vba_examples.htm



    Hope this will help

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Like" icon ...just below...in the bottom right corner...:)