Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Activating Macro from Outlook 1

Status
Not open for further replies.

cojiro

MIS
Joined
Mar 20, 2003
Messages
62
Location
US
When I am using Outlook I would like the following code to execute when I push Control+M. Can anyone help me out with this?


Sub SendMessage()
Dim Message As String
Message = InputBox("Enter your message and press enter.", "Enter Message")
Shell ("Command.com /c net send u54p37 " & Message)
End Sub

 
Create a toolbar button for it and set the toolbar control's name to:
[tt]
Send Net &Message[/tt]

The ampersand will become an undserscore below "M" indicating that the "M" is a hotkey. That way you can call the procedure using "Alt + M"

VBSlammer
redinvader3walking.gif

"You just have to know which screws to turn." - Professor Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top