![](images/graphics/blank.gif)
DÙNG VBA ĐIỀU KHIỂN PIVOT TABLE ĐỂ TẠO BÁO CÁO
lượt xem 71
download
![](https://tailieu.vn/static/b2013az/templates/version1/default/images/down16x21.png)
Điều khiển các chức năng cơ bản và nâng cao: 1. Hoán đổi vị trí các fields trong cùng Area PHP Code: With ActiveSheet.PivotTables("") .PivotFields("").Position = IIf(.Position = 1, 2, 1) ' Dời Row field qua trái hoặc Column Field lên trên:' .PivotFields("").Position = .Position - 1 ' Dời Row field qua phải hoặc Column Field xuống dưới:' .PivotFields("").Position = .Position + 1 End With 2. Chuyển vị trí fields từ Area này qua Area khác PHP Code: With ActiveSheet.PivotTables("") .PivotFields("").Orientation = xlRowField 'Row Area' .PivotFields("").Orientation = xlColumnField 'Column Area' .PivotFields("").Orientation = xlPageField 'Page Area' End With 3. Thêm & thay đổi dữ liệu cần phần tích trong Data Area PHP Code: With...
Bình luận(0) Đăng nhập để gửi bình luận!
![](images/graphics/blank.gif)
CÓ THỂ BẠN MUỐN DOWNLOAD