码迷,mamicode.com
首页 > 其他好文 > 详细

Excel 数据验证宏

时间:2015-06-10 10:14:14      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

Sub 宏1()
‘
‘ 宏1 宏
    With Selection.Validation
        .Delete
        .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="a,b,c,d"
        .IgnoreBlank = True
        .InCellDropdown = True
        .InputTitle = ""
        .ErrorTitle = ""
        .InputMessage = ""
        .ErrorMessage = ""
        .IMEMode = xlIMEModeNoControl
        .ShowInput = True
        .ShowError = True
    End With
End Sub

 

Excel 数据验证宏

标签:

原文地址:http://www.cnblogs.com/xiangnan/p/4565157.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!