Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Run-Time error '5941' | Mailmerge | |||
VB runtime error 5941 Help | Microsoft Word Help | |||
Need help with a euntime 5941 error | Microsoft Word Help | |||
Error 5941 - The requested member of the collection does not exsis | Microsoft Word Help | |||
Macro Run-time Error '5941' | New Users |