H
HBO
I have created a macro that runs fine in both XP and word 2002. My problem
is that when it was run on word 2000 the macro crashed at this bit of code:
Sub UpdateBookmark(BkMrkToUpdte as string, TxtToUse as string)
Dim BMRange As Range
***** this is the line it stopped at below
Set BMRange= ActiveDocument.Bookmarks(BKMrkToUpdte).Range
BMRange.Text = TxtToUse
ActiveDocument.Bookmarks.Add BkMrkToUpdte, BMRange
End Sub
This code works fine in XP which I have and 2002 which my boss runs however
when he tried to distribute it to another person with word 2000 it crashed
here, with the message "requested member of the collection does not exist".
Since I don't have 2000 I can not test this but was wondering if this is a
version problem. I am currently trying to figure out if the person has all
the documents that are associated with the macro since that might be the
problem, however it should have bombed when I opened those documents. Any
help or assistance with this is appreciated.
HBO
is that when it was run on word 2000 the macro crashed at this bit of code:
Sub UpdateBookmark(BkMrkToUpdte as string, TxtToUse as string)
Dim BMRange As Range
***** this is the line it stopped at below
Set BMRange= ActiveDocument.Bookmarks(BKMrkToUpdte).Range
BMRange.Text = TxtToUse
ActiveDocument.Bookmarks.Add BkMrkToUpdte, BMRange
End Sub
This code works fine in XP which I have and 2002 which my boss runs however
when he tried to distribute it to another person with word 2000 it crashed
here, with the message "requested member of the collection does not exist".
Since I don't have 2000 I can not test this but was wondering if this is a
version problem. I am currently trying to figure out if the person has all
the documents that are associated with the macro since that might be the
problem, however it should have bombed when I opened those documents. Any
help or assistance with this is appreciated.
HBO