Great! Thanks! I got it almost working. Just one more thing I can't seem to solve.
Sub GetCheckBoxAddress(cb As Object)
Dim ro As Long, c As Long
If cb.Object.Value = True Then
With cb.TopLeftCell
ro = .row
c = .Column
End With
Dim FirstRow As Long
Dim FirstCell As Long
Dim ZoekenColumns As Long
FirstRow = Sheets("Offerte").Range("E158").End(xlUp).row + 1
Sheets("Zoeken").Range("B" & ro, "M" & ro).Copy
Sheets("Offerte").Range("E" & FirstRow).EntireRow.Hidden = False
Sleep 100
On Error Resume Next
Sheets("Offerte").Range("E" & FirstRow).PasteSpecial xlPasteValues
On Error Resume Next
Else
Dim r As Range
With r
Set r = Sheets("Offerte").Cells.Find(What:=Sheets("Zoeken").Range("B" & ro))
r.EntireRow.ClearContents
r.EntireRow.Hidden = True
End With
End If
End Sub
The part after 'Else' doesn't work anymore. This is what I want: when a ceckbox in the sheet is unchecked, it needs to search for the value in column "B" and the row of the checkbox from the sheet "Zoeken" in the sheet "Offerte". When found it needs to clear the content of that row and hide it.
It works when I search for a specific cell (example: Range("B1")), but not when I search for the column + row. Any ideas?