Disabling Ctrl+Enter

  • Thread starter Thread starter Emmanuel STAPF
  • Start date Start date
E

Emmanuel STAPF

I'm trying to disable the effect of Ctrl+Enter, but I still want to be able
to send mail directly when I click the `Send' button.

I found that I would need to make sure to set `Cancel' to True in:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
End Sub

But how do I find out when the user has used `Ctrl+Enter' or clicked on the
`Send' button?

Also, I want the script I doing for myself to be signed, so that I can keep
the high security setting for macros, but how do I do that?

Thanks,
Manu
 
Unfortunately, you cannot distinguish whether a user has clicked the Send
button or used a shortcut key. Either way, the ItemSend event will fire if
you have an active object set to the current message and you can cancel it
if you desire. Why do you want to disable the shortcut key?

To sign your code, use the selfcert.exe utility. Full information is here:

Code Signing Office XP Visual Basic for Applications Macro Projects
http://tinyurl.com/2qlkv
 
Eric Legault said:
Unfortunately, you cannot distinguish whether a user has clicked the Send
button or used a shortcut key. Either way, the ItemSend event will fire if
you have an active object set to the current message and you can cancel it
if you desire. Why do you want to disable the shortcut key?

I'm using the Microsoft way to put accent in my emails. For example:
Ctrl + ' = é

However it happens to me on several occasion that I did Ctrl + Enter because '
and Enter are next to each other. As a result I've been sending unfinished email
by mistake. I know I should type better, but this happened to me on several
occasions. That's why I want to disable `Ctrl + Enter'.
To sign your code, use the selfcert.exe utility. Full information is here:

Code Signing Office XP Visual Basic for Applications Macro Projects
http://tinyurl.com/2qlkv

Thank you very much, it helped.

Regards,
Manu
 
Back
Top