用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

© 2026 长短途
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com