Hi Jim,
I posted some code below that copies the cells from column G to T whenever a cells in the range from G18:T43 is double-clicked per what I understood from your description. The worksheet is posted also so you can see how it works and if it is what you were looking for.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim i As Long
Dim sRow As Long
If Not Intersect(Target, Range("G18:T43")) Is Nothing Then
sAddress = Target.Address
i = InStr(2, Target.Address, "$")
sRow = Right(Target.Address, Len(Target.Address) - i)
' Move Row
For i = 9 To 15
If IsEmpty(Range("G" & i)) Then
Range("G" & sRow & ":T" & sRow).Copy
Range("G" & i).Select
ActiveSheet.Paste
Target.Select
GoTo 10
End If
Next i
MsgBox "There are no empty rows from ""G9:G15"", nothing has been copied."
End If
10 End Sub
Thanks,
Daniel
Bookmarks