【问题标题】:Clear tab color for specific selected sheets with vba macro使用 vba 宏清除特定选定工作表的选项卡颜色
【发布时间】:2019-08-26 02:15:16
【问题描述】:

我想删除不同工作表的工作表标签颜色。例如。仅适用于名称包含“缺陷”的工作表。

【问题讨论】:

  • 欢迎来到 SO。到目前为止,您尝试过什么?

标签: excel vba colors tabs


【解决方案1】:
Sub Simples()
Dim ws As Worksheet
For Each ws In Worksheets
    If InStr("Defects", ws.Name) > 0 Then
       ws.Tab.ColorIndex = xlColorIndexNone

    End If
Next ws
End Sub

【讨论】:

    猜你喜欢
    • 2017-06-23
    • 1970-01-01
    • 1970-01-01
    • 2012-04-01
    • 1970-01-01
    • 2016-10-09
    • 2020-04-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多