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

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 2007-04-10 11:17  王峰炬  阅读(222)  评论(0编辑  收藏  举报

导航