VBA Unfilter系列 [英] VBA Unfilter range

查看:306
本文介绍了VBA Unfilter系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码:

Sheets("Sheet1").AutofilterMode = False

使用VBA对Excel工作表中的数据进行过滤(重点是清除所有过滤器)。这似乎并不总是有效,是否有更好的方法?

to unfilter the data in an Excel sheet using VBA (the point is to clear all the filters). This doesn't seem to always work, is there a better way?

谢谢!

如果它有帮助,这个表是从Sql Server(数据 - >其他来源 - >从Sql Server ...)链接的,它有一个彩色的设计布局(具体表)。

In case it helps, this table is linked from Sql Server (Data --> From other sources --> From Sql Server...) and it has a coloured design layout (table specific).

推荐答案

使用 Worksheets(Sheet1)。ShowAllData 请参阅 http://msdn.microsoft。 com / en-us / library / office / bb178108%28v = office.12%29.aspx

这篇关于VBA Unfilter系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆