||
#时隔两年,我又来学VBA了:)
字体字号
.Name 字体
.Size 大小
Strikethrough 删除线
Superscript 上标
Subscript 下表
OutlineFont 字符边框???
Shadow 阴影
Underline 强调线
ColorIndex 颜色,
Bold 加粗
Italic 斜体
专题: 颜色 |
法1 Selection.Interior.ColorIndex = 5 法2 Selection.Interior.Color = 16711680 Selection.Interior.Color = &HFF0000 Selection.Interior.Color = &O77600000 Selection.Interior.Color = RGB(0, 0, 255) |
对齐方式
HorizontalAlignment = excel.xlRight 水平右对齐
另,excel.xlLeft 左对齐
excel.xlCenter 中心对齐
excel.xlJustify 两端对齐
excel.xlDistributed 分布对齐
VertivalAlignment = excel.xlTop 垂直上对齐
另,excel.xlBottom 下对齐
excel.xlCenter 中心对齐
excel.xlJustify 两端对齐
excel.xlDistributed 分布对齐
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-5-21 16:30
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社