So I want to set Caption on Command buttons according to A1 to D1 strings in sheet3
Dim buttonname as String
Dim i as Integer
For i = 1 to 5
buttonname = "Commandbutton" & i
buttonname.Caption = Worksheets(sheet3).Cells(1,i)
Next
It looks like this code is not working, need to be Controls but when I tried with Controls I can not set it to change command buttons