![]() |
#3
|
||||
|
||||
![]()
Using a selection object in a range other than the body of the document might be where the problem is coming from. Or perhaps the txtName textbox is no longer available.
If you tried using Range instead of Selection you may get it working better. Note that 'replacing text at a bookmark' is normally problematic as the contents of the bookmark are removed and the text appears beside (not inside) the bookmark unless steps are taken to handle this. See the following thread for inspiration https://www.msofficeforums.com/word-...-bookmark.html
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
REf Fields show Bookmark whole cell when Bookmark is created by code. | pmcpowell | Word VBA | 2 | 11-16-2019 07:05 PM |
How do I code bookmark globally for different template? | Yong Xiang | Word VBA | 17 | 02-06-2019 01:09 PM |
![]() |
Cosmo | Word | 7 | 08-24-2018 01:46 PM |
![]() |
gattaca714 | Word VBA | 2 | 03-24-2017 09:23 PM |
Find Bookmark, move to bookmark, execute code, repeat | raymm3852 | Word VBA | 10 | 04-15-2016 06:21 PM |