|

楼主 |
发表于 2018-10-1 16:55
|
显示全部楼层
其他代码相同,以下代码变化以下
- Dim wb As Workbook
- Set wb = Workbooks.Add
- With wb.Sheets(1)
- .Range("A1").Resize(UBound(a, 2), UBound(a)) = WorksheetFunction.Transpose(a)
- .Columns("A:Z").Columns.AutoFit
- .Range("A1").CurrentRegion.Borders.LineStyle = xlContinuous
- End With
-
- ' Application.ScreenUpdating = False
- ' Sheet3.Cells.Clear
- ' Sheet3.Range("A1").Resize(UBound(a, 2), UBound(a)) = WorksheetFunction.Transpose(a)
- ' Sheet3.Columns("A:Z").Columns.AutoFit
- ' Sheet3.Range("A1").CurrentRegion.Borders.LineStyle = xlContinuous
- ' Application.ScreenUpdating = True
- ' Sheet3.Select
复制代码 |
评分
-
1
查看全部评分
-
|