作者lanyihsin198 (紫色强迫症)
看板Visual_Basic
标题[VBA ] 请帮我解释一下
时间Fri Oct 16 15:42:42 2009
教授要求逐行解释 但我根本不知道自己在做什麽
麻烦帮忙一下罗
共有3个
Sub aa()
'
' aa Macro
' R509 在 2009/10/15 录制的巨集
'
' 快速键: Ctrl+e
'
Selection.NumberFormatLocal = "0.00_ "
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
End Sub
Sub ac()
x = ActiveCell.Value
y = ActiveCell.Offset(1, 0).Value
ActiveCell.Value = y
ActiveCell.Offset(1, 0).Value = x
ActiveCell.Offset(1, 0).Select
End Sub
Sub bb()
ActiveChart.PlotArea.Height = InputBox("高(1/72 inch)?", "300")
ActiveChart.PlotArea.Width = InputBox("宽(1/72 inch)?", "300")
End Sub
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.118.41.154
1F:→ rushcat:作业文中的作业文...XDDD 10/16 16:09
2F:→ rushcat:1是改变储存格格式 2只要查查Offset在干嘛就知道了 10/16 16:10
3F:→ rushcat:3是改变选取中的图表宽跟高 只是不知道是哪张图就是了 10/16 16:12