Silly newbie question really 
Basically i have the following checkbox in a script I have wrote, I need it to place (preferably in the name of the check box, though in the adjacent cell will do just as well) the current Date, when the checkbox is checked.
I get an error on the .onaction part
can you point me to the right direction
thanks
Dave
Basically i have the following checkbox in a script I have wrote, I need it to place (preferably in the name of the check box, though in the adjacent cell will do just as well) the current Date, when the checkbox is checked.
I get an error on the .onaction part
can you point me to the right direction
thanks
Dave
Code:
ActiveSheet.CheckBoxes.Add(Cells(irow, 4).Left, Cells(irow, 4).Top, 10, 10).Select
With Selection
.Placement = xlMove
.PrintObject = True
.Value = xlOff
.Characters.Text = "Form Response"
' .OnAction = "customize"
.OnAction = (Cells(irow, 5) = Date)
.ShapeRange.Width = 150
End With
irow = irow + 1