ITeye博客

vb 实现打开excel 单元格自适应高度

onlyor · 2014-12-03 14:05 · c++ · 编程语言 · Markdown

Sub auto_open()
'
' 宏2 宏
'
Dim g As Integer
g = 3


For i = 1 To 2

    Range("a" + CStr(i + (i - 1) * 3) + ":c" + CStr(i * 3)).Select
    Selection.UnMerge
    Selection.Rows.AutoFit
    Selection.Merge
    
Next i

    
End Sub

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。