Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / March 2008

Tip: Looking for answers? Try searching our database.

Configure Reading Pane

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TDM - 04 Mar 2008 17:19 GMT
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
Ken Slovak - [MVP - Outlook] - 04 Mar 2008 19:25 GMT
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.

Signature

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

> I am trying to put together a Macro to
> enumerate all folders in my profile and turn
[quoted text clipped - 7 lines]
>
> TDM
Sue Mosher [MVP-Outlook] - 04 Mar 2008 22:25 GMT
What about using Explorer.ShowPane olPreview, False instead?

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> 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
[quoted text clipped - 14 lines]
>>
>> TDM
TDM - 05 Mar 2008 02:30 GMT
What about using Explorer.ShowPane olPreview, False instead?

Signature

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

Ken Slovak - [MVP - Outlook] - 05 Mar 2008 14:03 GMT
Sue's correct, I had forgotten about that method. The reading pane is just
another name for the preview pane.

Signature

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

> What about using Explorer.ShowPane olPreview, False instead?
TDM - 07 Mar 2008 15:38 GMT
What about using Explorer.ShowPane olPreview, False instead?

Signature

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

TDM - 07 Mar 2008 15:45 GMT
> What about using Explorer.ShowPane olPreview, False instead?

OK, my stupidity, it is AutoPreview and I got it figured.

Sorry.

TDM
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.