Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Macro code for "F11" key (http://www.outlookbanter.com/outlook-vba/32128-macro-code-f11-key.html)

Colin Coady November 6th 06 08:25 PM

Macro code for "F11" key
 
What would the macro code be to simulate pressing the "F11" key. I'm planning
on assiging the macro a tool bar button so I can click the button instead of
pressing the "F11" key.
Any help would be appreciated - thanks.

Colin Coady November 6th 06 09:16 PM

Macro code for "F11" key
 
Got it after looking for awhile

Sub Spellcheck()
SendKeys "{F11}"
End Sub


"Colin Coady" wrote:

What would the macro code be to simulate pressing the "F11" key. I'm planning
on assiging the macro a tool bar button so I can click the button instead of
pressing the "F11" key.
Any help would be appreciated - thanks.



All times are GMT +1. The time now is 07:09 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com