V
VictorReinhart
Hi,
I solved what seems to be a bug in Word 2000. This line of code:
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range _
, Address:=ls_ltr$
will sometimes cause a message to appear:
Microsoft Word
Fields are nested too deeply
Despite the the error (which opens a modal window), the command does
create the hyperlink. However, the error message is annoying, and
after it happens once, then for each subsequent hyperlink, the error
happens again! In my test case, the error message pops up 4 times in
a row.
The fix was to add this line of code above it:
Response = DoEvents()
Regards,
VictorReinhart
I solved what seems to be a bug in Word 2000. This line of code:
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range _
, Address:=ls_ltr$
will sometimes cause a message to appear:
Microsoft Word
Fields are nested too deeply
Despite the the error (which opens a modal window), the command does
create the hyperlink. However, the error message is annoying, and
after it happens once, then for each subsequent hyperlink, the error
happens again! In my test case, the error message pops up 4 times in
a row.
The fix was to add this line of code above it:
Response = DoEvents()
Regards,
VictorReinhart