#1
|
|||
|
|||
Reset Word Document Bookmark Values
I have created a userform in word that populates via bookmarks. I want to be able to clear the values in the bookmarks so the user can launch the form again to re-use it over and over again. What VBA code will do this? So far the only way the bookmarks clear the values is if I close the document and reopen it without saving. |
#2
|
||||
|
||||
Bookmarks are too problematic, I recommend you use Content Controls instead.
You can use the Title or Tag property on the Content Controls as the trigger to align them with the controls on the userform.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
||||
|
||||
You shouldn't be doing it this way. Rather, you should be creating a template with whatever your defaults are and having the users create new documents from that. No code required.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Thanks you
Thank you both for responding. I will check out content controls. I thought about using just a template, but I need the user to only see limited things based on selections so I felt the userform could accomplish that.
|
#5
|
||||
|
||||
Userforms and templates are not mutually exclusive... If you already have a document with a userform that works with bookmarks, simply save it as a Word template.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
That was exactly was I was thinking as well. To save it as a template.
|
Tags |
clear bookmark values |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA to identify alpha numeric values in a word document and create a list of those values | olson.jacob720 | Word VBA | 0 | 04-18-2022 10:44 AM |
word 2002 hyperlink to a bookmark in the same document | anon125 | Word | 4 | 11-24-2020 02:16 PM |
split word document based on bookmarks with each new document title of the bookmark | megatronixs | Word VBA | 9 | 09-05-2020 02:29 PM |
Word document with VBA and Form Fields reset when select File,Print | fatal.lordes | Word VBA | 9 | 04-27-2018 11:30 PM |
Reset Word Document | gaafar.dafalla@illinois.g | Word | 1 | 12-01-2015 04:39 PM |