Thread: [Solved] Textbox & Edit Paste text
View Single Post
 
Old 08-20-2009, 06:21 PM
MikeWM MikeWM is offline Windows XP Office 2003
Novice
 
Join Date: Aug 2009
Posts: 4
MikeWM is on a distinguished road
Smile Found a solution.

Code:
Sub autoopen()
Application.CommandBars("Edit").Controls.Item("Paste").OnAction = "catcher1"
Application.CommandBars("Edit").Controls.Item("Paste Special...").OnAction = "catcher2"
End Sub
Public Sub catcher1()
SendKeys "^{v}"
End Sub
Public Sub catcher2()
MsgBox ("This option has been disabled by the administrator. Please use the shortcut keys 'ctrl+v' to paste.")
End Sub
Reply With Quote