|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Sub ×îÖÕDèÇó½á1û() '
On Error Resume Next
Worksheets("×îÖÕDèÇó½á1û").Activate
Application.ScreenUpdating = False
Cells.Clear
Cells.NumberFormatLocal = "@"
Rows.Font.Name = "΢èíÑÅoú"
Cells.HorizontalAlignment = xlCenter ''×óóò¾óÖD
Cells.VerticalAlignment = xlCenter ''éÏϾóÖD
Dim rng As Range
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
shp.Delete
Next
Dim maxrow%, maxcol%, arr
With Worksheets("′îÅäÃ÷ϸ±í")
maxrow = .Cells(Rows.Count, "A").End(xlUp).Row
maxcol = .Cells(1, Columns.Count).End(xlToLeft).Column
arr = .Range(.[A2], .Cells(maxrow, maxcol))
End With
Dim item%, i2%
i2 = 1
For i = 1 To UBound(arr)
item = item + 1
Cells(i2, item).Value = arr(i, 1)
Cells(i2, item).RowHeight = 19.5
Cells(i2, item).ColumnWidth = 28
Cells(i2 + 1, item).RowHeight = 367.5
Cells(i2 + 2, item).RowHeight = 142
Cells(i2 + 3, item).RowHeight = 1
Rows(i2).Font.Bold = True
Set rng = Cells(i2 + 1, item)
ActiveSheet.Shapes.AddPicture arr(i, 9), msoTrue, msoCTrue, rng.Left, rng.Top, rng.Width, rng.Height
Cells(i2 + 2, item).WrapText = True
Cells(i2 + 2, item) = arr(i, 8)
If item = 4 Then
item = 0
i2 = i2 + 4
End If
Next
Application.ScreenUpdating = True
End Sub
|
评分
-
1
查看全部评分
-
|