Hi Piranhao,
These may be what you want:
Sub CopyExercises(): Dim w1 As Worksheet, w2 As Worksheet, R As Long, lRow As Long 'Piranhao
Set w1 = Sheets("Sheet1"): Set w2 = Sheets("Sheet2")
For Each chkbx In w1.CheckBoxes
If chkbx.Value = 1 Then
For R = 1 To Rows.Count
If Cells(R, 1).Top = chkbx.Top Then
lRow = w2.Range("A" & Rows.Count).End(xlUp).row + 1
w2.Range("A" & lRow & ":I" & lRow).RowHeight = _
w1.Range("A" & R & ":I" & R).RowHeight
w1.Range("B" & R).Copy w2.Range("B" & lRow)
w1.Range("H" & R).Copy w2.Range("H" & lRow)
w1.Range("I" & R).Copy w2.Range("I" & lRow)
Exit For
End If
Next R
End If
Next
End Sub
For the clear you'll need to have the row selected.
Sub ClearRowRange(): Dim R As Range, Pic As Object
Set R = Rows(ActiveCell.row)
R.ClearContents
For Each Pic In ActiveSheet.Shapes
Pic.Select
If Abs(Pic.Top - R.Top) < R.Height Then
Pic.Delete
End If: Next
End Sub
Bookmarks