I am building a Shelf live extention tracker for work, with the idea that each row is a different product, in columns L,M & N have check boxes, with macros attached to the ones in M & N, which will move the row of that check box to another sheet when checked. so far i have the below working code.
Dim cbrow As Long, chk As CheckBox, d As Range
For Each chk In ActiveSheet.CheckBoxes
If chk.Value = xlOn Then
cbrow = Range(chk.TopLeftCell.Address).Row
Sheets("Active SLE").Select ' New line
Rows("2:2").Select
Selection.Insert Shift:=xlDown
Call NoFill
Sheets("SLE Requests").Select ' Copy & Paste
ActiveSheet.Range("A" & cbrow & ":K" & cbrow).Select
Selection.Copy
Sheets("Active SLE").Select
Range("A2").Select
ActiveSheet.Paste
End If
Next
But this however i only want it to move the line if the check box in Column M is checked I tryed the below, but it didnt work.
For Each chk In ActiveSheet.Range("M:M").CheckBoxes
If chk.Value = xlOn Then