1 Function SheetIsExist(shtName) As Boolean 2 Dim ws As Worksheet 3 On Error Resume Next 4 Set ws = Worksheets("" & shtName) 5 SheetIsExist = (Err = 0) 6 Err.Clear: On Error GoTo 0 7 End Function
工作表是否已存在函数
猜你喜欢
转载自www.cnblogs.com/Ionefox/p/10312529.html
今日推荐
周排行