View Single Post
 
Old 09-26-2023, 08:59 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
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

There are rules for valid characters for bookmark names and it appears your code is trying create a bookmark with a name that is considered invalid. From memory, bookmarks can't start with a number, nor can they contain a space for instance. There are probably other rules on what is allowed as a bookmark name.

When you encounter the error and choose to Debug, hover over the StrIdx to see its value and make note of what it says. Do any characters appear to be unacceptable as bookmark names?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote