#1
|
|||
|
|||
add bookmark and delete it after
Hello
to give a bit of background: i have a file with lot of bookmark which are modifyat the file opening according to a textbox with lot of option that the user can fill. Then when it's fill, they aknowledge, the code is modifying the document, and in order to keep it clean, we delete all the bookmark. However, i would like to be able to modify again the date (so the bookmark date) afterward via the date bookmark. is it possible to extract the bookmark and bookmark localisation in a file, and then store it, and call it back when we need in order to reinject the date bookmark? i was also thinking of a sequence which find the date and modify with the today date.... it's a bit related to this post: https://www.msofficeforums.com/word-...ookchange.html |
#2
|
||||
|
||||
What you describe is a somewhat tortuous approach, but it would be easy enough to identify where the date is located and set a range to that location then write the new date to that range - via a bookmark if you wish, though that isn't really necessary.
As you have not indicated where the date is located in the document or how it is formatted, it is a difficult to advise how to set that range.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delete bookmark and paragraph which is blank | dsjk9190 | Word VBA | 2 | 01-22-2015 01:15 AM |
Delete bookmark which doesn't have a name | rarulkumar | Word VBA | 2 | 04-19-2013 03:19 AM |
Delete Range After Bookmark? | VBA_Elfe | Word VBA | 3 | 04-05-2013 05:05 AM |
delete all bookmark text | hklein | Word VBA | 4 | 08-10-2011 04:33 AM |
Newbie: Delete Bookmark | expatriate | Word VBA | 4 | 06-02-2011 01:12 AM |