回复 8# kk_lee69
兄弟,如何将下面这段宏代码,写成AU3格式?没这么玩过。
Sub 宏1()
'
' 宏1 宏
'
'
Columns("A:A").EntireColumn.AutoFit
Columns("G:G").EntireColumn.AutoFit
Columns("F:F").EntireColumn.AutoFit
Columns("E:E").EntireColumn.AutoFit
Rows("1:13").Select
Selection.RowHeight = 17
Range("C2:D4").Select
Selection.NumberFormatLocal = "#,##0.00_ "
Range("F2:G4").Select
Selection.NumberFormatLocal = "#,##0.00_ "
Range("C6:D8").Select
Selection.NumberFormatLocal = "#,##0.00_ "
Range("F6:G8").Select
Selection.NumberFormatLocal = "#,##0.00_ "
Range("C10:D10").Select
Selection.NumberFormatLocal = "#,##0.00_ "
Range("F10:G10").Select
Selection.NumberFormatLocal = "#,##0.00_ "
Range("C12:D13").Select
Selection.NumberFormatLocal = "#,##0.00_ "
Range("F12:G13").Select
Selection.NumberFormatLocal = "#,##0.00_ "
Range("C5:D5").Select
Selection.NumberFormatLocal = "0.00%"
Range("F5:G5").Select
Selection.NumberFormatLocal = "0.00%"
Range("C9:D9").Select
Selection.NumberFormatLocal = "0.00%"
Range("F9:G9").Select
Selection.NumberFormatLocal = "0.00%"
Range("C11:D11").Select
Selection.NumberFormatLocal = "0.00%"
Range("F11:G11").Select
Selection.NumberFormatLocal = "0.00%"
Range("E2:E13").Select
Selection.NumberFormatLocal = "0.00%"
Range("H2:H13").Select
Selection.NumberFormatLocal = "0.00%"
Range("C2:H13").Select
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Range("D8").Select
Range("A1:H13").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Range("D5").Select
End Sub |