A macro to check all checkboxes at one time and copy the info in each row...
Sub CopyCheckedItems()
Dim obj As OLEObject
Dim rngBox As Range
Dim vData As Variant
Dim x As Integer
Worksheets("Sheet1").Range("B2:E100").ClearContents
With Worksheets("Consumables")
For Each obj In .OLEObjects
If TypeName(obj.Object) = "CheckBox" Then
If obj.Object.Value = True Then
x = x + 1
Set rngBox = .Range(obj.TopLeftCell.Address).Offset(0, 1).Resize(1, 4)
vData = rngBox
Worksheets("Sheet1").Cells(x + 1, 2).Resize(1, 4) = vData
End If
End If
Next obj
End With
End Sub
Bookmarks