返回一个工作表的
Tab 对象。
语法
表达式.Tab
表达式 一个代表 Worksheet 对象的变量。
示例
在此示例中,ET 确定工作表的第一个标签的颜色索引是否设置为无,并通知用户。
示例代码 |
function CheckTab(){
// Determine if color index of 1st tab is set to none.
if(Worksheets.Item(1).Tab.ColorIndex == xlColorIndexNone){
MsgBox("The color index is set to none for the 1st worksheet tab.")
}
else{
MsgBox("The color index for the tab of the 1st worksheet is not set none.")
}
}
|