如何使用vbscript识别excel Workbook中隐藏的excel选项卡,而不是VBA。如何使用VBScript
获取每个选项卡的属性,如名称,颜色,可见性答案 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