Cannot execute the specified command

I have written a small command in the ‘Reply with History’ FORM of my mail box(NSF). In the OnLoad even I have written @Command( [TextPermanentPen] ; 1)

I wanted Permanent Pen to be always on when I reply. Its working fine.

But when I open a mail from Sent Item, I am getting the following message box

‘Cannot execute the specified command’

Can anyone help me out to overcome this problem.

Subject: Cannot execute the specified command

You probably need to make sure the document is in edit mode before running your @Command.

Subject: Cannot execute the specified command

Hi !You can use following formula:

@If(@IsDocBeingEdited;

@Command( [TextPermanentPen] ; 1); “”)

This is because @Command( [TextPermanentPen] ; 1) works only in edit mode.

  • Chhannoo

Subject: RE: Cannot execute the specified command

Hello,Thanks for your help.