[英]How to fill a drop-down list with the names of the columns in Excel VBA?
我从一个有 3 列的表中工作,我想用列的名称填充一个下拉列表。 我写了这段代码,但它不起作用。 我只有第一列的名称
ActiveSheet.DropDowns("Zone combinée 3").ListFillRange = Application.Transpose("'Opoci'!$A$1:$C$1")
请你帮助我好吗?
问候
ControlFormat.ListFillRange 属性只接受地址字符串,例如
.ListFillRange = "A1:A10"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.