Hi, I'm new on this forum
I've got a problem with a macro used for increasing cells by 1 with the right click of the mouse
This is the macro:
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("A1:Z100")) Is Nothing Then
Cancel = True
Target = Target + 1
End If
End Sub
Unfortunately it doesn't work with merge cells. How can I do?
Thank you
I've got a problem with a macro used for increasing cells by 1 with the right click of the mouse
This is the macro:
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("A1:Z100")) Is Nothing Then
Cancel = True
Target = Target + 1
End If
End Sub
Unfortunately it doesn't work with merge cells. How can I do?
Thank you