主题
Pattern (属性)
返回或设置一个包含 xlPattern 常量的 Any 值,它代表内部图案。
示例
python
#本示例在 Sheet1 中 A1 单元格的内部添加十字图案
def test():
Application.Worksheets.Item("Sheet1").Range("A1").Interior.Pattern = xlPatternCrissCross
python
#本示例在活动工作表中 A1:C4 单元格的内部添加网格图案
def test():
ActiveSheet.Range("A1:C4").Interior.Pattern = xlPatternGrid