![]() |
#4
|
||||
|
||||
![]()
Form fields only work in documents with 'filling in forms' protection applied. Unless your VBA code was changing the formfield's default property, anything you do to update the formfield would erase its contents. As it is, the error you're getting suggests that you're not writing to the formfield but are instead overwriting it and, hence, deleting its bookmark.
Instead of writing to formfields, you could just write the data to a bookmark (not just insert it at a bookmarked location), and cross-reference that bookmark. For code to update Word bookmarks correctly for that, see: https://www.msofficeforums.com/word-...html#post67058
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Pindar | Word VBA | 2 | 01-12-2017 05:03 PM |
![]() |
sj80 | Word | 1 | 01-26-2016 10:50 PM |
![]() |
tmarsh | Word Tables | 1 | 02-23-2015 07:43 AM |
![]() |
David C | Word | 1 | 10-24-2012 04:53 AM |
![]() |
LAssist2011 | Word | 5 | 12-14-2011 03:02 PM |