Excel中的字体如何编程让它居中
解决方案 »
- vb 使用webbroswer 打开word文档 想显示菜单栏 怎么办?
- msflexgrid 求救
- Mid是否不能在SQL应用.
- 一个查找和统计的问题,求教高手
- 关于水晶报表问题?
- 从当前时间到圣诞节的倒计时的天数和秒数
- 为什么不能更新记录有相同记录的中的一条记录?总是提示:更新影响到多条记录!!
- 一个非常棘手的数据类型问题!!急,在线等待,高分相送。
- 请教高手!在线等待,下面的错误原因是??? 我想了3天了!!! Set rs3 = db.OpenRecordset(sql, dbOpenDynaset)“参数不足……”之类
- 防止SQL注入的解决方法就是参数化查询...
- 老师给我们出的课程设计题目,请各位指点!
- 关于水晶报表的问题,大虾们救命呀!
Range("F2").Select
ActiveCell.FormulaR1C1 = "nihao"
With ActiveCell.Characters(Start:=1, Length:=5).Font
.Name = "Times New Roman"
.FontStyle = "常规"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Range("F2").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With
Set ex = CreateObject("Excel.Application")
flag = True
Set ex = CreateObject("Excel.Application")
Set exwbook = Nothing
Set exsheet = Nothing
Set exwbook = ex.Workbooks().Add
Set exsheet = exwbook.Worksheets("sheet1")
Columns(1).HorizontalAlignment = xlCenter 第一列居中 .HorizontalAlignment = xlRight
.HorizontalAlignment = xlLeft
.HorizontalAlignment = xlCenter