Pages

Friday, March 23, 2012

The BeforeRightClick event

The BeforeRightClick event

Private Sub Worksheet_BeforeRightClick(ByVal Target As Excel.Range, Cancel As Boolean)

    If IsNumeric(Target) And Not IsEmpty(Target) Then

        Application.Dialogs(xlDialogFormatNumber).Show

        Cancel = True

    End If

End Sub

 

No comments:

Post a Comment