Hello
I use this VBA code to insert rows in active sheet just by double clicking a cell (doesn't matter which cell)
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Application.ScreenUpdating = False
Cancel = True
Target.Offset(1).EntireRow.Insert
Target.EntireRow.Copy Target.Offset(1).EntireRow
On Error Resume Next
Target.Offset(1).EntireRow.SpecialCells(xlConstants).ClearContents
Application.ScreenUpdating = True
End Sub
What changes must apply to this VBA code, to insert a row in active sheet just by double clicking a cell FROM SPECIFIC RANGE (ex C15 : C30) ?
Thanks
I use this VBA code to insert rows in active sheet just by double clicking a cell (doesn't matter which cell)
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Application.ScreenUpdating = False
Cancel = True
Target.Offset(1).EntireRow.Insert
Target.EntireRow.Copy Target.Offset(1).EntireRow
On Error Resume Next
Target.Offset(1).EntireRow.SpecialCells(xlConstants).ClearContents
Application.ScreenUpdating = True
End Sub
What changes must apply to this VBA code, to insert a row in active sheet just by double clicking a cell FROM SPECIFIC RANGE (ex C15 : C30) ?
Thanks