excel自动筛选

When you turn on the filter in an Excel worksheet list, or if you create a named Excel table, each cell in the heading row automatically shows a drop down arrow. If you don't need them, here's how you can hide arrows in Excel AutoFilter.

在Excel工作表列表中打开过滤器时,或者在创建命名的Excel表时 ,标题行中的每个单元格都会自动显示一个下拉箭头。 如果不需要它们,可以按照以下方法在Excel自动筛选器中隐藏箭头。

Excel自动筛选箭头 (Excel AutoFilter Arrows)

In the heading row, an AutoFilter arrow button shows a filter icon, if you have filtered that column. If you point to an arrow with a filter icon, a pop up Tool Tip shows the filter criteria.

在标题行中,如果您已经过滤了该列,则“自动过滤器”箭头按钮将显示一个过滤器图标。 如果您指向带有过滤器图标的箭头,则弹出的工具提示将显示过滤器条件。

In the screen shot below, the Customer column has been filtered to show 3 specific customers - FoodMart, MegaStore and VegiVille.

在下面的屏幕快照中,已过滤“客户”列以显示3个特定客户-FoodMart,MegaStore和VegiVille。

自动筛选箭头选项 (AutoFilter Arrow Options)

For an AutoFilter, you have three options for the arrow display:

对于自动筛选器,箭头显示有三个选项:

  • Leave all the arrows showing保留所有箭头所示
  • Remove the AutoFilter, which removes all the arrows删除自动筛选,这将删除所有箭头
  • Use programming to hide one or more of the arrows.使用编程隐藏一个或多个箭头。

手动删除自动筛选器 (Manually Remove the AutoFilter)

For either a worksheet list, or a named table, you can manually turn the AutoFilter on and off, which also shows or hides the arrow buttons.

对于工作表列表或命名表,您可以手动打开或关闭“自动筛选”,这也会显示或隐藏箭头按钮。

  1. Click any cell in the filtered range单击过滤范围内的任何单元格
  2. On the Excel Ribbon, click the Data tab在Excel功能区上,单击“数据”选项卡
  3. Click the Filter button.单击过滤器按钮。

使用宏隐藏自动筛选箭头 (Hide AutoFilter Arrows with Macro)

Before Lists and Named Tables were added to Excel, there could only be one AutoFilter per worksheet.

在将列表和命名表添加到Excel之前,每个工作表只能有一个自动筛选。

Now, in addition to the single worksheet AutoFilter, you can put multiple named tables on a sheet. Each of those tables has its own AutoFilter property.

现在,除了单个工作表“自动筛选”之外,您还可以在工作表上放置多个命名表。 这些表中的每个表都有其自己的AutoFilter属性。

There are code examples below, for hiding arrows in a List AutoFilter, and a worksheet AutoFilter. There are more AutoFilter VBA examples on my Contextures website:

下面有一些代码示例,用于在列表自动过滤器和工作表自动过滤器中隐藏箭头。 我的Contextures网站上还有更多AutoFilter VBA示例:

  • Excel Worksheet AutoFilter VBA

    Excel工作表自动筛选VBA

  • Excel List AutoFilter VBA

    Excel列表自动筛选VBA

使用VBA隐藏列表自动筛选箭头 (Hide List AutoFilter Arrows With VBA)

If you want to leave one or more arrows visible, but hide the others, you can use a macro.

如果要使一个或多个箭头可见,而隐藏其他箭头,则可以使用宏。

In this example, only the second column will have an arrow, and all the others arrows will be hidden.

在此示例中,仅第二列将具有箭头,而所有其他箭头将被隐藏。

This code is designed for a named table, which has its own AutoFilter property. There can be multiple named tables on a worksheet, and each table's AutoFilter settings can be different.

此代码是为命名表设计的,该表具有自己的AutoFilter属性。 工作表上可以有多个命名表,并且每个表的“自动筛选”设置可以不同。

Sub HideArrowsList1()
'hides all arrows except list 1 column 2
Dim Lst As ListObject
Dim c As Range
Dim i As Integer
Application.ScreenUpdating = False
Set Lst = ActiveSheet.ListObjects(1)
i = 1
For Each c In Lst.HeaderRowRange
If i <> 2 Then
Lst.Range.AutoFilter Field:=i, _
VisibleDropDown:=False
Else
Lst.Range.AutoFilter Field:=i, _
VisibleDropDown:=True
End If
i = i + 1
Next
Application.ScreenUpdating = True
End Sub

使用VBA隐藏工作表自动筛选箭头 (Hide Worksheet AutoFilter Arrows With VBA)

To hide the arrows for a worksheet table's AutoFilter, the code is slightly different.

若要隐藏工作表表的“自动筛选”的箭头,代码略有不同。

There can be only one worksheet AutoFilter on a worksheet, and in this example, the filtered list starts in cell A1.

一个工作表上只能有一个工作表“自动筛选”,并且在此示例中,筛选后的列表开始于单元格A1中。

The following procedure hides the arrows for all columns except column B.

以下过程隐藏了除B列以外的所有列的箭头。

Sub HideArrows()
'hides all arrows except column 2
Dim c As Range
Dim i As Integer
i = Cells(1, 1).End(xlToRight).Column
Application.ScreenUpdating = False
For Each c In Range(Cells(1, 1), Cells(1, i))
If c.Column <> 2 Then
c.AutoFilter Field:=c.Column, _
Visibledropdown:=False
End If
Next
Application.ScreenUpdating = True
End Sub

使用隐藏箭头宏 (Use the Hide Arrow Macros)

To use these macros, copy them into a regular code module in your workbook. There are instructions here.

若要使用这些宏,请将它们复制到工作簿中的常规代码模块中。 这里有说明 。

You would only have to run the code once, after you set up the filtered list. To run the code,

设置过滤列表后,您只需运行一次代码。 要运行代码,

  • Click the View tab on the Excel Ribbon单击Excel功能区上的“查看”选项卡
  • At the far right of the tab, click the Macros command (click the picture at the top of the command)在选项卡的最右边,单击“宏”命令(单击命令顶部的图片)
  • In the list of macros, click the macro that you want to run在宏列表中,单击要运行的宏
  • Click the Run button.单击运行按钮。

翻译自: https://contexturesblog.com/archives/2012/05/29/hide-arrows-in-excel-autofilter/

excel自动筛选


http://www.taodudu.cc/news/show-3454313.html

相关文章:

  • 如何设置html打印区域大小,excel如何设置打印区域
  • Excel动态图表——滑动箭头图
  • excel表格下拉箭头_Excel 2013中缺少下拉箭头
  • NVIDIA ampere显卡不支持cuda11以下的版本
  • STM32F1+HAL RTC PC13作为普通IO使用
  • python3词法分析(一)词法单元
  • python token_token --- 与Python解析树一起使用的常量 — Python 3.9.0 文档
  • python token_token --- 与Python解析树一起使用的常量 — Python 3.8.6 文档
  • python 常量类用法_token --- 与Python解析树一起使用的常量 — Python 3.10.0a3 文档
  • python中plus_Python token.PLUS属性代码示例
  • AI技术在音乐类产品中的应用场景!
  • html实体编码 在线,HTML实体字符编码集(10页)-原创力文档
  • python token_bytes_Python token.RSQB属性代码示例
  • 怎么删除feed php,php-如何删除html特殊字符?
  • 文献笔记:Benchmarking graph neural networks for materials chemistry
  • 汽车面板开关的全球与中国市场2022-2028年:技术、参与者、趋势、市场规模及占有率研究报告
  • 距A轮融资不到七个月,Incode再获2.2亿美元B轮融资,跃升为独角兽企业
  • 当AI与音乐相遇,讯飞音乐用技术引领行业变革
  • 7.在SAP Web上实现Punchout目录采购(第二部分)
  • 在未来,机器人或 AI 还有多久才能具备人类的创造力?
  • 正在颠覆人类创作的“生成式技术”到底是什么?
  • “生成式技术”正在颠覆人类创作!
  • tampermonkey油猴插件-tampermonkey油猴插件下载
  • 【初创公司系列】Amper Music 开发Creative AI驱动的工具,以帮助团队创作和定制原创音乐
  • 光线追踪渲染实战(二):BVH 加速遍历结构
  • Imagination和完美世界游戏携手推进光线追踪在游戏中的应用
  • Imagination光线追踪助力开发者打造优质移动游戏
  • 从华为手机实现光线追踪谈起
  • 光线追踪:OptiXSDK optixDynamicGeometry
  • 一篇光线追踪的入门

excel自动筛选_在Excel自动筛选器中隐藏箭头相关推荐

  1. excel自动筛选_在Excel 2007中按选择自动筛选

    excel自动筛选 在Excel 2007中按选择自动筛选 (AutoFilter by Selection in Excel 2007) A couple of weeks ago I descri ...

  2. excel自动筛选_在Excel中按选择自动筛选

    excel自动筛选 In Excel 2003, you can add a couple of buttons to the toolbar to make it easy to filter a ...

  3. excel设置图片自动更新_智能Excel排班表,日期自动更新,三班排班一键统计,极简轻松...

    Hello大家好,我是帮帮.今天跟大家分享一张智能Excel排班表,日期自动更新,班次一键统计,极简轻松. 为了让大家能更稳定的下载模板,我们又开通了全新下载方式(见文章末尾),以便大家可以轻松获得免 ...

  4. excel使用教程_数据分析Excel必备技能:数据透视表使用教程

    江米小枣tonylua | 作者 掘金 | 来源 处理数量较大的数据时,一般分为数据获取.数据筛选,以及结果展示几个步骤.在 Excel 中,我们可以利用数据透视表(Pivot Table)方便快捷的 ...

  5. excel插入页码_当EXCEL遇上PPT 学做抢手人气王

    几乎每一个职场人的简历中,技能这一栏都会写上"熟练掌握Office". word可以说是最基础无难度的,那么PPT,Excel你就真的会用吗? 11月7-8日,<EXCEL遇 ...

  6. python关于excel格式刷_这些Excel学会了,你做账的效率将大大提高

    这些功能学会了,工作效率将大大提高. 1.excel的快速访问工具栏: 我的快速访问工具栏由左到右主要是"保存"."新建"."撤销".&qu ...

  7. excel 溢出 修复_修复Excel条件格式重复规则

    excel 溢出 修复 Conditional formatting is a great way to highlight specific data, but did you know that ...

  8. python相比于excel的优势_使用Excel和python来做回归分析

    使用Excel和python来做回归分析 作者:PHPYuan 时间:2018-08-01 03:40:50 聊完方差分析,就不得不说回归分析. 回归分析是一种应用广泛的统计分析方法,在金融,医学等领 ...

  9. excel文件修复_修复Excel文件

    excel文件修复 If you're having problems with an Excel file, using the built in repair feature might fix ...

最新文章

  1. 【踩坑之旅】-webpack (v4.8.1) + vue-cli (v2.5.3)升级准备
  2. mysql的存储引擎种类,mysql 存储引擎,基本数据类型
  3. python读取目录_Python读取一个目录下所有目录和文件
  4. c++读取txt中每行的数据到数组中
  5. poj 1324(BFS+状态压缩)
  6. Winsows VISTA启动过程解析
  7. Python面向对象、魔法方法
  8. React开发(131):ant design学习指南之form中的resetFields
  9. JEECG Excel 实体类
  10. 嵌入式系统——软件知识产权
  11. 一个FLASH小游戏----Redball3
  12. 每日算法系列【LeetCode 1250】检查「好数组」
  13. Mac上功能强大图片查看编辑工具:zGallery
  14. 计算机03年word做母亲节贺卡,word2007怎样制作电子母亲节贺卡
  15. postman导入postman_collection文件
  16. eclipse调成黑色主题背景(老版本适用)
  17. Linux服务器知识导图,整理分享一些 Linux思维导图(值得收藏)_网站服务器运行维护,Linux...
  18. html中背景条纹效果,使用CSS线性渐变 制作条纹背景
  19. unicode编码转gb2312编码并显示中文(cjava)
  20. ThreadPoolTaskScheduler实现动态管理定时任务

热门文章

  1. 数据工程师需要掌握的18个python库
  2. android6 wifi耗电,耗电太快?快来看不一样的安卓手机省电攻略
  3. Android中的闹钟与通知(附Demo)
  4. 金山快盘开发 (完)
  5. JSON 泛型序列化方法 与 LinkedHashMap转成对象
  6. 浅谈贝叶斯判别(Bayes)
  7. 计算机毕业论文乐谱播放器,原创】电子音乐播放器的设计和制作毕业论文(20201002130117...
  8. 计算机通过路由器连接网络连接到服务器,用路由器连接网络无法打开网页怎么办【解决方法】...
  9. Hadoop、Slurm平台详细安装配置步骤
  10. 高品质食品包装机(http://www.fw4x.com)制造厂家-巴月