单元格格式

81 阅读1分钟
  • Set 将单元格区域存储于变量中
  • Merge 合并单元格
  • HorizontalAlignment 方位属性
HorizontalAlignment水平位置
xlGeneral标准
XlLeft靠左
xlCenter居中
xlRight靠右
xlFi填充
xlJustify调节对齐
xlCenterAcrossSelection选择范围内中央对齐
xlDistributed平均对齐
  • Font 字符属性
属性说明
Font.Size字号/
Font.ColorIndex颜色/
Font.Bold加粗True/False
Range.Interior单元格内部
Interior.ColorIndex单元格背景颜色/
  • Borders 边框属性
属性说明
Borders.LineStyle边框True/False