K
kangrong025
Unregistered / Unconfirmed
GUEST, unregistred user!
请问个位大狭,我要用Delphi操作Excel2003我需要在指定的格子内产生一个下拉框可以选择
字段 请问怎么做?另外我用Excel录制产生了下拉框的VBA宏 如下: Range("E4".Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="1,2,3,4,5"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.IMEMode = xlIMEModeNoControl
.ShowInput = True
.ShowError = True
End With
Range("E4".Select
End Sub
请问如果要转化成Delphi代码怎么转换!请个位帮忙!
字段 请问怎么做?另外我用Excel录制产生了下拉框的VBA宏 如下: Range("E4".Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="1,2,3,4,5"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.IMEMode = xlIMEModeNoControl
.ShowInput = True
.ShowError = True
End With
Range("E4".Select
End Sub
请问如果要转化成Delphi代码怎么转换!请个位帮忙!