Har du set hvor smart det kan være?

Microsoft Office, Word skabeloner, Excel regnearkSmart Office Word skabelon system

SmartOffice - SheetsExists

Checker om der findes et Ark med et bestemt navn i det aktive regneark.



Eksempel 1

Public Function SheetExists(ByRef SheetName As String) As Boolean
    On Error Resume Next
    SheetExists = ActiveWorkbook.Worksheets(SheetName).Index
End Function


Test 1

Public Sub Test_SheetExists()
    Dim bAnswer As Boolean
    bAnswer = SheetExists("Sheet1")
    MsgBox "SheetExists returnerer svaret... " & bAnswer
End Sub
   

Smart Office Freeware Smart Data Management
Compare 2 Columns
Excel Super- Subscript
Teachers Excel Tools
         
Smart Office - Word og Excel specialist