K
K_Macd
The following code adds another paste special option to the right click menu
With Application.CommandBars("Cell").Controls _
.Add(Type:=msoControlButton, before:=5, _
Temporary:=False)
.Caption = "Paste &Value" '
.OnAction = "PasteSpecValue"
.Tag = "PS_PasteValue"
.Enabled = True
End With
Is there a code action to enable or disable that option dynamically as the
clipboard status alternates between filled and empty rather than test in the
'onaction' procedure at a lower level ?
TIA
With Application.CommandBars("Cell").Controls _
.Add(Type:=msoControlButton, before:=5, _
Temporary:=False)
.Caption = "Paste &Value" '
.OnAction = "PasteSpecValue"
.Tag = "PS_PasteValue"
.Enabled = True
End With
Is there a code action to enable or disable that option dynamically as the
clipboard status alternates between filled and empty rather than test in the
'onaction' procedure at a lower level ?
TIA