乔山办公网我们一直在努力
您的位置:乔山办公网 > excel表格制作 > <em>VB</em>&#47;<em>VB</em>A怎么修改

<em>VB</em>&#47;<em>VB</em>A怎么修改

作者:乔山办公网日期:

返回目录:excel表格制作


录制一下宏就有了。
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
==========
就是这一句改一下:range("A1").WrapText = True

Cells(1, 1) = "'+8"
Sub 文本型()
    X = [D65536].End(3).Row + 3
    Range("D1:D" & X).NumberFormatLocal = "@"
End Sub

Selection需要Select有内容才行。



Range("C3").Select
Selection.NumberFormatLocal = "@"

相关阅读

关键词不能为空
极力推荐

ppt怎么做_excel表格制作_office365_word文档_365办公网