I'm trying to make the following code to un-hide row 12, copy the value in cell D17 if the cell I10 is empty and then change the value in D17 by 1.
How could I do the needful?
Any help would be kindly appreciated.
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
On Error Resume Next
Application.ScreenUpdating = False
If Target.Address(False, False) = "I11" Then
Cancel = True
Rows(12).Hidden = False
Target.Copy
Range("I10").PasteSpecial Paste:=xlPasteValues
End If
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
Any help would be kindly appreciated.