作者:空空空空轨 | 来源:互联网 | 2023-05-25 12:17
1> Mathieu Guin..:
当然.在添加验证规则后,只需显式设置单元格的值:)
Dim defaultValue as String 'string right?
defaultValue = ... 'get the value you want from your [ListName]
.Cells(j, 7).Validation.Add Type:=xlValidateList, Formula1:="=" & "Listname"
.Cells(j, 7).Value = defaultValue