Thread: [Solved] Macro for creating bookmarks
View Single Post
 
Old 07-11-2025, 05:40 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
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

Hi Andrew,

Two comments:
1. Your code will fail for strings of >40 characters (>37 if the first is numeric), since the maximum bookmark name length is 40 characters.
2. Also, depending on what's being bookmarked, your code won't leave all instances bookmarked if two or more ranges begin with the same 40 characters.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote