Worksheet.Tab プロパティ (Excel)

ワークシートの Tab オブジェクトを返します。

構文

] タブ

Worksheet オブジェクトを表す変数。

次の使用例は、ワークシートの先頭のシート見出しの色インデックスに色なしが設定されているかどうかを調べ、通知します。

Sub CheckTab() 
 
 ' Determine if color index of 1st tab is set to none. 
 If Worksheets(1).Tab.ColorIndex = xlColorIndexNone Then 
 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." 
 End If 
 
End Sub

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。