vba - 使用 VBA 折叠组的更有效方法
问题描述
我有一个 8000 行的电子表格,我们利用分组来组织它。我在工作表上有一些带有宏的按钮,以帮助扩展和折叠组。该代码有效,但是速度很慢。
With sht.Outline
.ShowLevels RowLevels:=6
.ShowLevels RowLevels:=5
.ShowLevels RowLevels:=4
.ShowLevels RowLevels:=3
.ShowLevels RowLevels:=2
.ShowLevels RowLevels:=1
End With
注意:在此过程中我确实Application.ScreenUpdating
关闭了。
有没有比我现在做的更有效的方法来折叠或展开行?
解决方案
推荐阅读
- php - 当我尝试在我的项目 laravel 6.x 上使用 redis 时,它会显示此错误消息
- node.js - 将 nodejs MongoDB 连接代码移动到另一个文件
- javascript - 带有ajax json_encode的codeigniter不起作用
- asynchronous - 不能使用`impl Future`将异步函数存储在向量中
- odoo - 自定义小部件 js 无法识别来自 qweb 的模板
- ruby-on-rails - 安装 Rails 6.0.0 时出错:无法构建 gem 原生扩展
- cron - Quartz Web Restart 后的问题 - Quartz 触发所有已粘贴的计划作业
- r - 包 'GEOquery' 不可用(对于 R 版本 3.6.1)
- node.js - 使用 node.js 渲染车把部分打印不必要的空格
- java - OpMode 卡在 stop() Android 工作室