Configure Reading Pane

T

TDM

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 
S

Sue Mosher [MVP-Outlook]

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 - said:
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 said:
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
 
T

TDM

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
 
K

Ken Slovak - [MVP - Outlook]

Sue's correct, I had forgotten about that method. The reading pane is just
another name for the preview pane.
 
T

TDM

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
 
T

TDM

TDM said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top