Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #15  
Old 06-02-2024, 05:58 PM
Guessed's Avatar
Guessed Guessed is offline Copy/Paste of unmodified VBA Code in Word returns an error Windows 10 Copy/Paste of unmodified VBA Code in Word returns an error Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You have already discovered that there are problems with using Bookmarks for this purpose.
1. Bookmark names are case insensitive
2. Bookmark names are more limited than text on the page (eg can't include spaces, start with a digit, include ()@ or other characters, must be less than ~40 characters etc)
3. Bookmark names are not automatically updated when text on the page changes
4. Bookmark ranges could be 'broken' easily (and invisibly to the user) by edits to text in the document.
5. Bookmark names can only appear once in a document

If your intention is to see a list of the document content so people can quickly navigate to locations in the document then there are two features that most users are already familiar with for exactly this purpose:
a) Table of Contents
b) Navigation Pane

IMO, both of these features avoid all the limitations of bookmarks. I can't see any benefits of using Bookmarks for navigation other than cross-references. But if you are using bookmarks for cross-refs then you can name the bookmark completely independently to the actual text it is pointing at.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Code to copy data from two sheet ,paste into corresponding sheet through cmdbutton jackfruit88 Excel Programming 1 07-08-2022 09:27 PM
paste returns the wrong not the latest cut Peborgh Word 2 11-23-2021 03:31 AM
Copy/Paste of unmodified VBA Code in Word returns an error Error 4605 while trying to copy and paste with same document Ilmari Word VBA 2 05-05-2020 12:08 AM
Copy/Paste of unmodified VBA Code in Word returns an error Copy/Paste error stuart255 Office 5 05-06-2019 02:13 AM
VBA Newbie (Trying to write a code to copy and paste info from one sheet to another) Forum2000s Excel Programming 2 05-07-2017 04:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:54 AM.


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