Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Long String in BookMark
Hello to all,
I am having errors when I add a long string more than 255 characters in my bookmark. Can anyone help out. thanks example Set rng = ActiveDocument.Range Do With rng.Find .text = "STRING EXCEED 255 CHARACTERS" errors .Execute If rng.Find.Found Then iBookmarkSuffix = iBookmarkSuffix + 1 ActiveDocument.Bookmarks.Add strBookMarkPrefix & iBookmarkSuffix, rng End If End With Loop Until Not rng.Find.Found |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Long String in BookMark
I'm not surprised that there is a maximum length for bookmark names (though
I would expect it to be a little more than 255 characters). Which line of the macro causes the error message? Try stepping through the macro. -- Stefan Blom Microsoft Word MVP "malagon" wrote in message ... Hello to all, I am having errors when I add a long string more than 255 characters in my bookmark. Can anyone help out. thanks example Set rng = ActiveDocument.Range Do With rng.Find text = "STRING EXCEED 255 CHARACTERS" errors Execute If rng.Find.Found Then iBookmarkSuffix = iBookmarkSuffix + 1 ActiveDocument.Bookmarks.Add strBookMarkPrefix & iBookmarkSuffix, rng End If End With Loop Until Not rng.Find.Found -- malagon |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Deleting block of text takes a long, long, LONG time | Microsoft Word Help | |||
Long string of periods in Word 2003 | Microsoft Word Help | |||
String too long | Microsoft Word Help | |||
My noteref to valid bookmark says "Error! Bookmark not defined."? | Microsoft Word Help | |||
The Insert Bookmark box shouldnt vanish after adding a bookmark. | Microsoft Word Help |