VBScript:如何使用vbscript识别excel中隐藏的excel选项卡

时间:2014-10-14 14:27:44

标签: excel vbscript

如何使用vbscript识别excel Workbook中隐藏的excel选项卡,而不是VBA。如何使用VBScript

获取每个选项卡的属性,如名称,颜色,可见性

1 个答案:

答案 0 :(得分:1)

假设objExcel是您的Excel应用程序对象:

For i = 1 To objExcel.Sheets.Count

    ' Display the name of hidden worksheets...
    If Not objExcel.Sheets(i).Visible Then
        WScript.Echo objExcel.Sheets(i).Name & " is not visible."
    End If

    ' Get the tab color value of each worksheet...
    WScript.Echo "Tab color value = " & objExcel.Sheets(i).Tab.Color

Next