Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2023, 06:34 AM
leurne leurne is offline add bookmark and delete it after Windows 10 add bookmark and delete it after Office 2021
Novice
add bookmark and delete it after
 
Join Date: Jun 2023
Posts: 9
leurne is on a distinguished road
Default 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

Reply With Quote
  #2  
Old 08-12-2023, 08:59 AM
gmayor's Avatar
gmayor gmayor is offline add bookmark and delete it after Windows 10 add bookmark and delete it after Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
add bookmark and delete it after Delete bookmark and paragraph which is blank dsjk9190 Word VBA 2 01-22-2015 01:15 AM
add bookmark and delete it after Delete bookmark which doesn't have a name rarulkumar Word VBA 2 04-19-2013 03:19 AM
add bookmark and delete it after Delete Range After Bookmark? VBA_Elfe Word VBA 3 04-05-2013 05:05 AM
add bookmark and delete it after delete all bookmark text hklein Word VBA 4 08-10-2011 04:33 AM
add bookmark and delete it after Newbie: Delete Bookmark expatriate Word VBA 4 06-02-2011 01:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:57 PM.


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