Im now try to create multiple checkbox with automatically linked cell with them. I found this formula. and I have no knowledge about VBA at all.
However, this will return result TRUE or FALSE within the same cell that contain checkbox. How can I modify it to show the result in the 3rd column next to it (Right hand side)
My checkboxes are in the column N and I want the result to be show in column Q
Thank you in advance
Code:
[COLOR=#2A2A2A][FONT=Segoe UI]Option Explicit
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI]Sub addCBX()
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI]Dim myCBX As CheckBox
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI]Dim myCell As Range
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] With ActiveSheet
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] .CheckBoxes.Delete 'nice for testing
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] For Each myCell In ActiveSheet.Range("A2:A10").Cells
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] With myCell
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] Set myCBX = .Parent.CheckBoxes.Add _
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] (Top:=.Top, Width:=.Width, _
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] Left:=.Left, Height:=.Height)
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] With myCBX
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] .LinkedCell = myCell.Address(external:=True)
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] .Caption = "" 'or whatever you want
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] '.Name = "CBX_" & myCell.Address(0, 0)
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] End With
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] .NumberFormat = ";;;"
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] End With
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] Next myCell
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI] End With
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI]End Sub[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI]
[/FONT][/COLOR][COLOR=#2A2A2A][FONT=Segoe UI]
[/FONT][/COLOR]
My checkboxes are in the column N and I want the result to be show in column Q
Thank you in advance
Last edited: