#1   Report Post  
Posted to microsoft.public.word.docmanagement
Tonya C. Tonya C. is offline
external usenet poster
 
Posts: 4
Default Run Time Error 5941

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!!!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
Gordon Bentley-Mix[_2_] Gordon Bentley-Mix[_2_] is offline
external usenet poster
 
Posts: 154
Default Run Time Error 5941

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

"Tonya C." wrote in message
...
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!!!


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey Greg Maxey is offline
external usenet poster
 
Posts: 264
Default Run Time Error 5941

On Oct 6, 4:56*pm, Tonya C. wrote:
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!!!


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.
  #4   Report Post  
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
Pesach Shelnitz[_2_] Pesach Shelnitz[_2_] is offline
external usenet poster
 
Posts: 277
Default Run Time Error 5941


--
Hope this helps,
Pesach Shelnitz


"Gordon Bentley-Mix" wrote:

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

"Tonya C." wrote in message
...
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!!!



  #5   Report Post  
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
Pesach Shelnitz[_2_] Pesach Shelnitz[_2_] is offline
external usenet poster
 
Posts: 277
Default Run Time Error 5941

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.
--
Hope this helps,
Pesach Shelnitz


"Pesach Shelnitz" wrote:


--
Hope this helps,
Pesach Shelnitz


"Gordon Bentley-Mix" wrote:

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

"Tonya C." wrote in message
...
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!!!





  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Tonya C. Tonya C. is offline
external usenet poster
 
Posts: 4
Default Run Time Error 5941

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

"Greg Maxey" wrote:

On Oct 6, 4:56 pm, Tonya C. wrote:
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!!!


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.

  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default Run Time Error 5941

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.


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

"Greg Maxey" wrote:

On Oct 6, 4:56 pm, Tonya C. wrote:
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!!!


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.


--
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



  #8   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default Run Time Error 5941

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.

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

"Greg Maxey" wrote:

On Oct 6, 4:56 pm, Tonya C. wrote:
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!!!


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.


--
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



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-Time error '5941' Todd K. Mailmerge 3 January 30th 09 09:55 PM
VB runtime error 5941 Help maviso5 Microsoft Word Help 3 April 14th 08 09:05 PM
Need help with a euntime 5941 error tweacle Microsoft Word Help 1 February 28th 07 08:50 PM
Error 5941 - The requested member of the collection does not exsis Melisa Microsoft Word Help 3 July 13th 05 03:56 PM
Macro Run-time Error '5941' raymond New Users 4 June 25th 05 12:02 AM


All times are GMT +1. The time now is 12:30 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"