Run Time Error 5941

S

spunkymuffmonkey

Hi,

This error occurs when the document is missing something that the macro is
depending upon.

For example, if I had a macro that simply inserted a new row in the 1st
table of a document, but there was no table in the document in which I was
trying to run the macro, i would hit the error 5941 as the requested member
(table 1) does not exist.

To help you ascertain which member does not exist it might be handy to step
into the macro and run it step by step, to do this:

Press Alt+F11 to enter the Visual Basic Editor.
Select the problematic macro from the project explorer (press Ctrl+R if you
don't see the Project Explorer).
Hit F8 to step into the macro, then hit F8 to step through each command, you
should then gain a better idea of where this macro is falling down.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top