Run Time Error 5941

  • Thread starter Thread starter Tonya C.
  • Start date Start date
T

Tonya C.

We have an macro linked in our letter macro that will add three addresses at
the bottom of the footer when you select the Personal Injury Macro. Now when
we select the letter macro and pick the Personal Injury selection, we get the
Run Time Error 5941 - The requested member of the collection does not exist.

What is the problem?

Help!!!
 
Two suggestions:

1. Post your code. Without it there's no way even the best of us could
discern where the problem lies. If you can indicate where the code breaks
even better.

2. Post your question in the programming newsgroup where most of the geeks
hang out. (I've cross-posted my reply so you should be good to go now.)
 
We have an macro linked in our letter macro that will add three addressesat
the bottom of the footer when you select the Personal Injury Macro.  Now when
we select the letter macro and pick the Personal Injury selection, we getthe
Run Time Error 5941 - The requested member of the collection does not exist.  

What is the problem?

Help!!!

The problem is a requested member of a collection does not exist. The
code is apparently trying to do something with something that doesn't
exists (e.g., put text in a table cell that doesn't exist). To
determine what that member and collection is would require access to
your code.
 
--
Hope this helps,
Pesach Shelnitz


Gordon Bentley-Mix said:
Two suggestions:

1. Post your code. Without it there's no way even the best of us could
discern where the problem lies. If you can indicate where the code breaks
even better.

2. Post your question in the programming newsgroup where most of the geeks
hang out. (I've cross-posted my reply so you should be good to go now.)
--
Cheers!

Gordon Bentley-Mix
Word MVP
 
Hi,

My guess is that the macro is looking for a bookmark that no longer exists
or was never inserted. If the macro is looking for a named bookmark, check
that the bookmark exists in the document.
 
Where would I find the code. I am new to working with macros. Could you
assist me, please?
 
Tonya,

With the document opened, open the VB Editor (Alt+F11). If not displayed,
display the Project Explorer (CTRL+r). Find and click your template or
document project and the module containing your macro. Click in the code
window and step through the macro using the F8 key to try to determine the
line of code that throws the error. Copy and paste the code in your reply.

Where would I find the code. I am new to working with macros. Could
you assist me, please?

--
Greg Maxey

See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.

"It is not the critic who counts, not the man who points out how the
strong man stumbles, or where the doer of deeds could have done them
better. The credit belongs to the man in the arena, whose face is
marred by dust and sweat and blood, who strives valiantly...who knows
the great enthusiasms, the great devotions, who spends himself in a
worthy cause, who at the best knows in the end the triumph of high
achievement, and who at the worst, if he fails, at least fails while
daring greatly, so that his place shall never be with those cold and
timid souls who have never known neither victory nor defeat." - TR
 
Tonya,

With the document opened, open the VB Editor (Alt+F11). If not displayed,
display the Project Explorer (CTRL+r). Find and click your template or
document project and the module containing your macro. Click in the code
window and step through the macro using the F8 key to try to determine the
line of code that throws the error.
Where would I find the code. I am new to working with macros. Could
you assist me, please?

--
Greg Maxey

See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.

"It is not the critic who counts, not the man who points out how the
strong man stumbles, or where the doer of deeds could have done them
better. The credit belongs to the man in the arena, whose face is
marred by dust and sweat and blood, who strives valiantly...who knows
the great enthusiasms, the great devotions, who spends himself in a
worthy cause, who at the best knows in the end the triumph of high
achievement, and who at the worst, if he fails, at least fails while
daring greatly, so that his place shall never be with those cold and
timid souls who have never known neither victory nor defeat." - TR
 
Back
Top