I am trying to fill a comboxbox located in sheet "AAA" with data in Sheet "BBB"
x = Application.WorksheetFunction.Max(Sheets("BBB").Range("m2:m200")) + 1
Sheets("AAA").Shapes("Drop_Leg").Select
With Selection
.ListFillRange = "='BBB'!n2:n" & x
End With
I am getting the error
"Requested Shapes are locked for selection".
I have tried different approaches, but cannot get it to work. This used to be a dropbox, but I was asked to change it to a combo.
Thanks in advance
.select? LikeSheets("AAA").Shapes("Drop_Leg").ListFillRange = "='BBB'!n2:n" & x. This can occur when the shape is not visible or something, then it obviously cannot be selected.Sheets("AAA").Shapes("Drop_Leg").ControlFormat.ListFillRange = "='BBB'!n2:n" & x