I wanted to add Button to each row against each activities from 11 to 35, button is in column 'K11' while clicking on button macro will automattically add user name and time in cell Q11 and enter text as success in cell N11
I have created below button on row 11.
Sub addDetail()
Sheets("sheet1").Range("Q11").Value = _
Environ("username") & " - " & Format(Now, "mm/dd/yyyy HH:mm:ss")
Range("N11").Value = "Success"
End Sub
do i have to create this code for 25 times to add code to each button in each row or there is any other method?
