daominhtri01
Thành viên mới

- Tham gia
- 20/9/09
- Bài viết
- 10
- Được thích
- 0
E hay tạo pivot table layout ở dạng classic nên tạo 1 macro để chuyển và lưu macro ở personal file. Vấn đề là macro chỉ chạy đúng với pivot table đầu tiên. Các bác giúp e sửa lại cái macro để có thể chuyển layout của nhiều table với.
Macro của e nó như sau:
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+Shift+L
'
With ActiveSheet.PivotTables("PivotTable1")
.InGridDropZones = True
.RowAxisLayout xlTabularRow
End With
End Sub
Macro của e nó như sau:
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+Shift+L
'
With ActiveSheet.PivotTables("PivotTable1")
.InGridDropZones = True
.RowAxisLayout xlTabularRow
End With
End Sub