ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel VSTO pivot table code revision help needed... (https://www.excelbanter.com/excel-programming/440061-excel-vsto-pivot-table-code-revision-help-needed.html)

[email protected]

Excel VSTO pivot table code revision help needed...
 
Hello,

The first line below works cleanly in my project, but I am having
errors/issues with the next two lines.

Globals.Sheet16.PivotTables("PivotTable2").PivotCa che.Refresh()
Globals.Sheet16.PivotTables("PivotTable2").PivotFi elds("fy").Item(1).Visibl*
e = True
Globals.Sheet16.PivotTables("PivotTable2").PivotFi elds("fy").Item(2).Visibl*
e = False

Please advise as to what is needed to revise the code to get it to
work as expected.

Thanks,

Kevin

Herbert Seidenberg

Excel VSTO pivot table code revision help needed...
 

..PivotFields(1).PivotItems(2).Visibl*e = False



Kevin

Excel VSTO pivot table code revision help needed...
 
Herbert,

Thanks, it worked as I had hoped!

Thanks,

Kevin

---
frmsrcurl: http://msgroups.net/microsoft.public...on-help-needed

[email protected]

Excel VSTO pivot table code revision help needed...
 
Herbert,

Thanks, it worked as I had hoped!

Thanks,

Kevin

On Feb 28, 12:42*pm, Herbert Seidenberg
wrote:
.PivotFields(1).PivotItems(2).Visibl*e = False




All times are GMT +1. The time now is 01:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com