I found some code online that works to copy a checked box row into a new worksheet, but it doesn't copy the picture that it is the row. How can I modify the code to get the image to transfer as well?
My current macro is below:
Sub CopyRows()
For Each chkbx In ActiveSheet.CheckBoxes
If chkbx.Value = 1 Then
For r = 1 To Rows.Count
If Cells(r, 1).Top = chkbx.Top Then
With Worksheets("Selected_Chemicals")
LRow = .Range("A" & Rows.Count).End(xlUp).Row + 1
.Range("A" & LRow & ":G" & LRow) = _
ActiveSheet.Range("A" & r & ":G" & r).Value
End With
Exit For
End If
Next r
End If
Next
End Sub
Thanks for the help
My current macro is below:
Sub CopyRows()
For Each chkbx In ActiveSheet.CheckBoxes
If chkbx.Value = 1 Then
For r = 1 To Rows.Count
If Cells(r, 1).Top = chkbx.Top Then
With Worksheets("Selected_Chemicals")
LRow = .Range("A" & Rows.Count).End(xlUp).Row + 1
.Range("A" & LRow & ":G" & LRow) = _
ActiveSheet.Range("A" & r & ":G" & r).Value
End With
Exit For
End If
Next r
End If
Next
End Sub
Thanks for the help