用VBA程序为你的Excel 背景设置护眼色

2026-02-14 03:58:45

1、Sub 设置护眼色()

With Cells

        .Borders.Color = 12632256

        .Interior.Color   = 12312507

End With

End Sub

效果图如下:

用VBA程序为你的Excel 背景设置护眼色

2、Sub 取消护眼色()

With Cells

        .Borders.LinStyle = xlNone

        .Interior.Color   = xlNone

End With

End Sub

猜你喜欢