用vba在pivot表里筛选数据有无限循环小数取不到
因为有无限循环小数在里面,所以没有办法取到。
For iitem = 1 To No19WS.PivotTables("ピボットテーブル2").PivotFields("actualhour").PivotItems.Count
No19WS.PivotTables("ピボットテーブル2").PivotFields("actualhour").PivotItems(iitem).Visible = True
Next
For iitem = 1 To No19WS.PivotTables("ピボットテーブル2").PivotFields("actualhour").PivotItems.Count
No19String = No19WS.PivotTables("ピボットテーブル2").PivotFields("actualhour").PivotItems(iitem)
If No19String >= 6 Then
No19WS.PivotTables("ピボットテーブル2").PivotFields("actualhour").PivotItems(iitem).Visible = True
Else
No19WS.PivotTables("ピボットテーブル2").PivotFields("actualhour").PivotItems(iitem).Visible = False
End If
Next
请问这段代码该怎么改。
相关推荐
Excel Power Pivot数据建模分析(进阶篇)资料.zip
我这也有我之前看的时候的一些资料,希望对你有帮助 TOPN分析 移动平均 预测分析 RFY分析
OutlookToExcelTimeSheet:VBA宏可从Outlook日历中提取条目并将其提取为Excel Pivot Table时间表格式
OutlookToExcelTimeSheet VBA宏可从Outlook日历中提取条目并将其提取为Excel Pivot Table时间表格式
Pivot Table Data Crunching
Pivot Table Data Crunching
Excel-Text_In_Pivot
HomeworkHelpOnline.net-Excel:数据透视表中的文本而不是计数 按下CTC工作表中的“更新”按钮。 VBA在单独的文件中给出。
Microsoft Excel 2019 VBA and Macros
Microsoft Excel 2019 VBA and Macros (Business Skills) By 作者: Bill Jelen – Tracy Syrstad ISBN-10 书号: 1509306110 ISBN-13 书号: 9781509306114 Edition 版本: 1 出版日期: 2019-01-07 pages 页数: (1580) Use this guide to automate virtually any routine Excel task: save yourself hours, days, maybe even weeks. Make Excel do things you thought were impossible, discover macro techniques you won’t find anywhere else, and create automated reports that are amazingly powerful. Bill Jelen and Tracy Syrstad help you instantly visualize information to make it actionable; capture data from anywhere, and use it anywhere; and automate the best new features in Excel 2019 and Excel in Office 365. You’ll find simple, step-by-step instructions, real-world case studies, and 50 workbooks packed with examples and complete, easy-to-adapt solutions. By reading this book, you will: Quickly master Excel macro development Work more efficiently with ranges, cells, and formulas Generate automated reports and quickly adapt them for new requirements Learn to automate pivot tables to summarize, analyze, explore, and present data Use custom dialog boxes to collect data from others using Excel Improve the reliability and resiliency of your macros Integrate data from the internet, Access databases, and other sources Automatically generate charts, visualizations, sparklines, and Word documents Create powerful solutions with classes, collections, and custom functions Solve sophisticated business analysis problems more rapidly About This Book For everyone who wants to get more done with Microsoft Excel in less time For business and financial professionals, entrepreneurs, students, and others who need to efficiently manage and analyze data


Office开发/ VBA
