Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-09-2017, 04:28 AM
macropod's Avatar
macropod macropod is offline Text Form Field & REF Field Windows 7 64bit Text Form Field & REF Field Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Form Field & REF Field Macro to autofill a form field ONLY if the form field is blank upon entry Pindar Word VBA 2 01-12-2017 05:03 PM
Text Form Field & REF Field Insert text form field help sj80 Word 1 01-26-2016 10:50 PM
Text Form Field & REF Field Text form field in table tmarsh Word Tables 1 02-23-2015 07:43 AM
Text Form Field & REF Field Form field selection allows entry into form text box David C Word 1 10-24-2012 04:53 AM
Text Form Field & REF Field Form Fields - Create blank form text field with if statement? LAssist2011 Word 5 12-14-2011 03:02 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft