Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从一组数据生成一个饼图。
我不知道从哪里开始......
您可以将标签的数字格式链接到单元格的数字格式。通过用户界面,您可以通过格式化标签并在数字选项卡上选择“链接到源”来执行此操作。
如果您在此期间运行宏记录器,您将获得相应的 VBA,即链接
ActiveChart.SeriesCollection(1).DataLabels.NumberFormatLinked = -1
并取消链接
ActiveChart.SeriesCollection(1).DataLabels.NumberFormatLinked = 0