S
Sandi V
Another listserve pointed me to the following code that adds Paste Special to
the right-click menu. Can anybody help me so one step further...instead of
having to select a format and click OK in the Paste Special window, can I
give the user Paste Unformatted Text right there on the right-click window?
(ABOVE regular Paste if possible?)
Thanks in advance!
Sandi
Sub AutoExec()
Call AddPasteSpecial
End Sub
Sub AddPasteSpecial()
Dim cb As CommandBar
Dim c As CommandBarButton
Set cb = Application.CommandBars("Text")
Set c = cb.FindControl(, , "VBAxPasteSpec")
If c Is Nothing Then
Set c = cb.Controls.Add(msoControlButton, 755, , 4, True)
With c
..Caption = "Paste &Special..."
..Style = msoButtonCaption
..TooltipText = "Paste Special"
..Tag = "VBAxPasteSpec"
End With
End If
End Sub
the right-click menu. Can anybody help me so one step further...instead of
having to select a format and click OK in the Paste Special window, can I
give the user Paste Unformatted Text right there on the right-click window?
(ABOVE regular Paste if possible?)
Thanks in advance!
Sandi
Sub AutoExec()
Call AddPasteSpecial
End Sub
Sub AddPasteSpecial()
Dim cb As CommandBar
Dim c As CommandBarButton
Set cb = Application.CommandBars("Text")
Set c = cb.FindControl(, , "VBAxPasteSpec")
If c Is Nothing Then
Set c = cb.Controls.Add(msoControlButton, 755, , 4, True)
With c
..Caption = "Paste &Special..."
..Style = msoButtonCaption
..TooltipText = "Paste Special"
..Tag = "VBAxPasteSpec"
End With
End If
End Sub