如何在显示自定义Solution Module文件夹时集成自定义设计
问题描述:
我已将自定义文件夹集成到导航窗格中的解决方案模块。现在我需要将自定义设计集成到此文件夹中。我怎样才能实现这个目标?
I have integrated a custom folder to Solution Module in Navigation Pane. Now I need to integrate a custom design into this folder. How can I achieve this?
以下是用于创建解决方案模块并添加到导航窗格的代码片段。
Below is the code snippet used to create Solution Module and add to Navigation Pane.
....
Outlook.Folder rootStoreFolder = Application.Session.DefaultStore.GetRootFolder();
// I need this folder to take custom designed form instead of olFolderInbox
Outlook.Folder solutionRoot = rootStoreFolder.Folders.Add("Solution Demo", Outlook.OlDefaultFolders.olFolderInbox);
Outlook.Explorer explorer = Application.ActiveExplorer();
Outlook.SolutionsModule solutionsModule = explorer.NavigationPane.Modules.GetNavigationModule(
Outlook.OlNavigationModuleType.olModuleSolutions);
solutionsModule.AddSolution(solutionRoot, Outlook.OlSolutionScope.olHideInDefaultModules);
....
答
Hi techgigs
Hi techgigs
您可以使用"记录宏"和"记录宏"。按钮记录以下步骤:
You can use the "Record Macro" button to record the following steps:
1。创建自定义文件夹。
1. Create a custom folder.
2。将上面的文件夹添加到导航窗格。
2. Add above folder to the Navigation Pane.
3。将自定义设计分配给自定义文件夹。
3. Assign a custom design to the custom folder.
4。停止记录并检查 生成VBA代码。
4. Stop record and check the generate VBA code.