小说网 找小说 无限小说 烟雨红尘 幻想小说 酷文学 深夜书屋

EXCEL 中 判断某个自定义序列是否存在

Sub Macro1()
Dim customlist As String, i As Long
customlist = "全部自定义序列" & vbCrLf & String(30, "-") & vbCrLf
For i = 1 To Application.CustomListCount
customlist = customlist & "【" & Format(i, "00") & "】" & Join(Application.GetCustomListContents(i), ",") & vbCrLf
Next
MsgBox customlist & vbCrLf & String(30, "-") & vbCrLf & "序列(xxxxx)有没有?-->" & IIf(InStr(customlist, "xxxxx") > 0, "有!", "没有!")
End Sub
 

posted on   王峰炬  阅读(226)  评论(0编辑  收藏  举报

导航

< 2007年4月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12
点击右上角即可分享
微信分享提示