![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() I am trying to put together a Macro to enumerate all folders in my profile and turn off the Reading Pane for each folder. I have everything working except the turning off thepane. I did not find much on Google, and I went through the Outlook VBA help, no luck there either. Is this even possible ? Thanks in advance. TDM |
Ads |
#2
|
|||
|
|||
![]()
You will need to use the Explorer.CommandBars collection for each folder to
turn that off. Use the ActiveExplorer.CurrentFolder object and set it to each folder you have in turn. Then get Explorer.CommandBars and use the FindControl method of the CommandBars object to find a CommandBarButton with the ID of 7223. Then call the Execute method on that button. Repeat for each folder. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "TDM" wrote in message ... I am trying to put together a Macro to enumerate all folders in my profile and turn off the Reading Pane for each folder. I have everything working except the turning off thepane. I did not find much on Google, and I went through the Outlook VBA help, no luck there either. Is this even possible ? Thanks in advance. TDM |
#3
|
|||
|
|||
![]()
What about using Explorer.ShowPane olPreview, False instead?
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Ken Slovak - [MVP - Outlook]" wrote in message ... You will need to use the Explorer.CommandBars collection for each folder to turn that off. Use the ActiveExplorer.CurrentFolder object and set it to each folder you have in turn. Then get Explorer.CommandBars and use the FindControl method of the CommandBars object to find a CommandBarButton with the ID of 7223. Then call the Execute method on that button. Repeat for each folder. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "TDM" wrote in message ... I am trying to put together a Macro to enumerate all folders in my profile and turn off the Reading Pane for each folder. I have everything working except the turning off thepane. I did not find much on Google, and I went through the Outlook VBA help, no luck there either. Is this even possible ? Thanks in advance. TDM |
#4
|
|||
|
|||
![]() "Sue Mosher [MVP-Outlook]" wrote in message ... What about using Explorer.ShowPane olPreview, False instead? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 I will give these a try, but I am pretty sure olPreview is the Preview pan, not the Reading pane. Many thanks for the inputs, I will post success or failure. TDM |
#5
|
|||
|
|||
![]()
Sue's correct, I had forgotten about that method. The reading pane is just
another name for the preview pane. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "TDM" wrote in message ... "Sue Mosher [MVP-Outlook]" wrote in message ... What about using Explorer.ShowPane olPreview, False instead? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 I will give these a try, but I am pretty sure olPreview is the Preview pan, not the Reading pane. Many thanks for the inputs, I will post success or failure. TDM |
#6
|
|||
|
|||
![]() "Sue Mosher [MVP-Outlook]" wrote in message ... What about using Explorer.ShowPane olPreview, False instead? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 Well, it turns out I was already using the code you mention, but I assumed the PreviewPane was just that, the PreviewPane. Once I actually manually traversed most of my folders, I noticed that indeed, the Reading pane was off so it was actually working, I just did not know it because of the verbage confusion. So, how does one actually turn off the PreviewPane, is there some othe obscure property for that ? Thanks again for your inputs. TDM |
#7
|
|||
|
|||
![]() "TDM" wrote in message ... "Sue Mosher [MVP-Outlook]" wrote in message ... What about using Explorer.ShowPane olPreview, False instead? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 Well, it turns out I was already using the code you mention, but I assumed the PreviewPane was just that, the PreviewPane. Once I actually manually traversed most of my folders, I noticed that indeed, the Reading pane was off so it was actually working, I just did not know it because of the verbage confusion. So, how does one actually turn off the PreviewPane, is there some othe obscure property for that ? Thanks again for your inputs. TDM OK, my stupidity, it is AutoPreview and I got it figured. Sorry. TDM |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading Pane in vba | _-Andy-_ | Outlook and VBA | 13 | July 20th 07 12:42 PM |
Reading configure info | Markus | Outlook and VBA | 1 | July 14th 07 10:08 PM |
Reading Pane | bfarr | Outlook - General Queries | 1 | February 23rd 07 01:39 PM |
Reading Pane Not Available | Bob Newman | Outlook - General Queries | 2 | December 26th 06 03:11 PM |
Reading Pane | TerryM | Outlook - Installation | 1 | May 14th 06 01:59 AM |