Run-time error 4605 Command not available

J

John Davidson

Hi All,
I have been getting an error message when I open a Word file within an
email, the message is
(Run-time error '4605' command not available).
Can anyone help me to stop this happening?
TIA John D.
 
J

Jezebel

Not without knowing something about the macro or add-in that is raising the
error (it's not a built-in Word error). At a guess, you have some sloppy
code that is making assumptions about the display mode that you are in when
the document opens, which assumption is wrong if Word is opened from
Outlook.

To diagnose the problem: cause the error, then with the error message box
displayed, press Ctrl-Break before clicking OK. If the error is in a macro,
you should get a message about "Code was interrupted" -- switch to VBA and
you should be within the function that caused the error. (Won't work if the
error is in an add-in that is not open.)
 
J

John Davidson

Hi Jezebel ,
Thanks for your reply, I have not had much time to work on this lately
but eventually got to look at it. You were spot on, I had this line of
code in the global macro that seemed to be causing the problem.
"Application.DisplayStatusBar = True"
John D.
 

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