excel切片器显示错误_带切片器的Excel弹出选择器工具

excel切片器显示错误

Slicers make it easy to select from a list of items, but they take up valuable space on your worksheet. To get the benefits of a Slicer, without the real estate cost, AlexJ made this Excel Pop Up Selector – it’s hidden until you click the small button on the sheet, and disappears again, after you use it.

使用切片器可以轻松地从项目列表中进行选择,但是它们会占用工作表上的宝贵空间。 为了获得切片机的好处,而无需支付房地产费用,AlexJ制作了此Excel弹出选择器-它一直处于隐藏状态,直到您单击工作表上的小按钮为止,然后在使用后再次消失。

Excel弹出选择器工具演示 (Excel Pop Up Selector Tool Demo)

This animated screen shot shows how the pop up selector works. Click the button to make the selector appear, select items from the list, then click to show a message or image. This is a simple example – you could make the code do something fancier.

此动画屏幕快照显示了弹出选择器的工作方式。 单击按钮使选择器出现,从列表中选择项目,然后单击以显示消息或图像。 这是一个简单的示例–您可以使代码做得更好。

弹出切片器视频 (Pop Up Slicer Video)

To see a longer version of how the Pop Up Slicer works, watch this video. There are more details below, and the sample file is on the Excel Popup Slicer Selector page on my Contextures website.

要查看弹出切片器的工作原理的较长版本,请观看此视频。 下面有更多详细信息,示例文件位于Contextures网站的Excel Popup Slicer Selector页面上。

演示地址

弹出选择器设置 (Pop Up Selector Setup)

The pop up selector is an Excel Slicer that is grouped with other shapes. The Slicer is sized to leave empty space at the bottom, and that’s where the other shapes are added, formatted to look like buttons.

弹出选择器是与其他形状组合在一起的Excel Slicer。 切片器的大小设置为在底部留有空白,这是添加其他形状的地方,其格式设置为类似于按钮。

Those buttons have macros assigned, and there’s a bit of worksheet code too.

这些按钮已分配了宏,并且还有一些工作表代码。

弹出切片器设置 (Pop Up Slicer Setup)

In the workbook, AlexJ has an Excel Table, with a list of items required for the pop up selector.

在工作簿中,AlexJ有一个Excel表,其中包含弹出选择器所需的项目列表。

There’s also a Pivot Table, based on that Excel table, and the Slicer shows the items in the pivot table’s Selector field.

还有一个基于该Excel表的数据透视表,“切片器”在数据透视表的“选择器”字段中显示项目。

The pivot table’s data body range is named when the pivot table updates, and that range is used to get the list of items.

在更新数据透视表时,将命名数据透视表的数据主体范围,该范围用于获取项目列表。

工作表事件 (Worksheet Events)

The Demo sheet also has worksheet events that run when you:

演示工作表中还包含工作表事件,这些事件在您执行以下操作时运行:

  • Select a cell (Worksheet_SelectionChange) — hides the special image, and calls the macro named “ShowDialog”, which shows the grouped Slicer shape

    选择一个单元格 (Worksheet_SelectionChange)-隐藏特殊图像,并调用名为“ ShowDialog”的宏,该宏显示分组的Slicer形状

  • Use the Slicer (Worksheet_PivotTableUpdate) — creates a named range, based on the pivot table’s data body range

    使用切片器 (Worksheet_PivotTableUpdate)-根据数据透视表的数据主体范围创建命名范围

弹出选择器的其他用途 (Other Uses for Pop Up Selector)

AlexJ created this pop up selector technique for his Excel files at work, so that people could make print selections.

AlexJ为工作中的Excel文件创建了这种弹出选择器技术,以便人们可以进行打印选择。

To show us the basics of how it works, he created this simple example – instead of printing the selected items, it shows the selected items in a message box.

为了向我们展示其工作原理,他创建了这个简单的示例–而不是打印选定的项目,而是在消息框中显示选定的项目。

You can put your own twist on AlexJ’s technique, and adapt it for your Excel workbooks. What would you do with the Pop Up Selector?

您可以对AlexJ的技术进行自己的调整,并使其适用于Excel工作簿。 您将如何使用弹出选择器?

  • Print all the selected sheets

    打印所有选定的图纸

  • Show or hide selected sheets

    显示或隐藏选定的工作表

  • Send emails to selected names

    发送电子邮件到选定的名字

  • Open selected Excel files?

    打开选定的Excel文件?

  • What else?

    还有什么?

获取弹出选择器示例文件 (Get the Pop Up Selector Sample File)

To get AlexJ’s Excel Pop Up Selector Tool, and to see all the details and tips on how to build it, go to the Excel Popup Slicer Selector page on my Contextures website.

若要获取AlexJ的Excel弹出选择器工具,并查看有关如何构建它的所有详细信息和提示,请转到Contextures网站上的“ Excel弹出切片器选择器”页面

You can get the sample file there too. The zipped file is in xlsm format, and contains macros. The Slicers will work in Excel 2007 and later versions.

您也可以在那里获得示例文件。 压缩文件为xlsm格式,并包含宏。 切片器将在Excel 2007和更高版本中工作。

翻译自: https://contexturesblog.com/archives/2017/07/20/excel-pop-up-selector-tool/

excel切片器显示错误

    原文作者:culiao2169
    原文地址: https://blog.csdn.net/culiao2169/article/details/107986720
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞