VBA折叠Outlook导航窗格中的文件夹 [英] VBA Collapse a folder in outlook navigation pane

查看:201
本文介绍了VBA折叠Outlook导航窗格中的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的导航窗格中有4个帐户,包含数百个文件夹。要重新启动视图,我想转到顶级文件夹并以编程方式折叠它。使用VBA,我可以有一个按钮来完成所有4个帐户。

I have 4 accounts in my navigation pane with hundreds of folders. To reset the views to a fresh start, I would like to go to a top level folder and collapse it programmatically. Using VBA, I could have one button that did all 4 accounts.

我在网上看到了一些扩展所有的宏,但是我没有看到为什么要折叠文件夹的子文件夹。

I see some expand-all macros on-line, but I don't see a why to collapse a folder's sub-folders.

帮助将不胜感激。谢谢,Ted

Help would be appreciated. Thanks, Ted

推荐答案

您好,

Outlook对象模型没有提供任何内容折叠导航窗格上的文件夹。要展开一个文件夹,只需将其设置为资源管理器窗口中的当前文件夹(将其带到视图中)。没有这种折叠方法。 

The Outlook object model doesn't provide anything for collapsing folders on the navigation pane. To expand a folder you just needed to make it the current one in the Explorer window (bring it to the view). There is no such methods for collapsing. 

作为一种解决方法,您可以考虑动态删除和添加商店。在这种情况下,文件夹显示为已折叠。 

As a workaround you may consider removing and adding stores on the fly. In that case folders are shown as collapsed. 


这篇关于VBA折叠Outlook导航窗格中的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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