Maybe someone could help me with this
The user specifies a number of new rows to be entered (nMembers) and in column 9 of the new rows I want to enter a checkbox, and center it in the cell. is this possible? I have tried to write the code but cant get it to work!
[vba]Sub InsertMembers()
Dim nMembers As Integer
nMembers = CInt(Range("C3"))
nMemStart = Range("S1")
Dim startPoint As Range
Set startPoint = Sheets("Sheet1").Range("A" & nMemStart) ' A9 is where we insert rows at
For i = 1 To nMembers
startPoint.Offset(i, 0).EntireRow.Insert
startPoint.Offset(i, 0) = i
'in column 9 i want to insert a checkbox in every row
startPoint.Offset(i, 9) = OLEObjects.Add(ClassType:="Forms.CheckBox.1")
Next i
End Sub[/vba]