How to disable syncing folder views/layouts

Status
Not open for further replies.

JackPollack

Senior Member
Outlook version
Email Account
Exchange Server
Hi,

Running OL on multiple computers. Each computer is running at a totally different resolution. The layout that works for one is horrible for another. The layouts are syncing across Exchange. If I change the layout of several folders so I can read them on one computer I have to change them back on the other. Not only do the actual folder layouts sync, but the layout template also syncs. So currently I have to have a group of uniquely named layouts for each computer and switch back and forth every time I use a different computer. This is a big waste of time and there must be a better way.

Thanks
 

larry

Senior Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
I can't think of a better way than custom views. It's not the best, unfortunately. The views are stored in the mailbox and roam with it. :(
 

JackPollack

Senior Member
Outlook version
Email Account
Exchange Server
What I have been trying to write is a VBA program that will set the views. I'm having two problems, the code below works on OL2003 when it is offline, but doesn't work on OL2010 when offline (I haven't tried it OL yet with either version as I don't want to mess up things until this is stable and I am working on 2 test machines at the moment).

Also the 'Application.ActiveExplorer.CurrentFolder' is making a mess of my folders by expanding them all. I need a way to set the view of each folder without changing the current folder to every folder in the tree, or a way to progromatically determine whether the folder is expanded or not and then set it back after.

I'm thinking just an icon to run this every time I switch from one outlook to another, but maybe it could be put in an event (which?) to trigger.

Sub SetFolder()

MousePointer = 11

Set TopFolder = Application.GetNamespace("MAPI").Folders.GetLast

GetSubfolders (TopFolder)

Set Application.ActiveExplorer.CurrentFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)

TopFolder = ""

MousePointer = 0

End Sub

Sub GetSubfolders(ByVal objParentFolder)

Set colFolders = objParentFolder.Folders

For Each objfolder In colFolders
Set objsubfolder = objParentFolder.Folders(objfolder.Name)
If objfolder.DefaultItemType = 0 Then

Select Case objsubfolder
Case "Drafts", "Junk E-Mail", "Outbox", "Sent Items" ...

Case Else

Set Application.ActiveExplorer.CurrentFolder = objsubfolder
Application.ActiveExplorer.CurrentView = "HomeView"

End Select

End If
GetSubfolders objsubfolder

Next

End Sub
 

JackPollack

Senior Member
Outlook version
Email Account
Exchange Server
Any help on getting this to work in OL2010 and my other questions would be appreciated (or just a better way to deal with views across multiple computers)

1. 'Application.ActiveExplorer.CurrentFolder' is making a mess of my folders by expanding them all. I need a way to set the view of each folder without changing the current folder to every folder in the tree, or a way to progromatically determine whether the folder is expanded or not and then set it back after.

2. I'm thinking just an icon to run this every time I switch from one outlook to another, but maybe it could be put in an event (which?) to trigger.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
application_startup could be used, but I would probably use a button, so I could choose if I needed it.

i haven't had a chance to test it on other installations and I don't know if you can avoid expanding the folders and remembering the expanded state may not be possible. Someone in the msdn forums could better answer that - Outlook for Developers Forum
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J How do I disable advertising in Outlook 2019? Using Outlook 13
GregS Outlook 2016 Can I disable the Outlook Outbox? Using Outlook 2
R Disable conversation thread from replying of recipients in the same subject. Please help Using Outlook 0
N Disable Auto Read Receipts sent after using Advanced Find Using Outlook 4
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
N How to disable shortcuts for Pilcrow in Outlook Using Outlook 0
M Making Subject field writable (disable Read Only) Outlook VBA and Custom Forms 2
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
P Disable Spam Notifications & Sounds Using Outlook 3
O Outlook Web Access - how to disable spam filter Using Outlook 6
Diane Poremsky Disable Protected View for Outlook Attachments New Slipstick.com Articles 0
E Outlook 2010 disable date auto-complete Using Outlook 2
Diane Poremsky Disable Outlook Add-ins (Apps) New Slipstick.com Articles 0
J Using VBA to disable alerts / warnings Using Outlook 2
Diane Poremsky Disable the Unsafe Hyperlink Warning when Opening Attachments New Slipstick.com Articles 0
N How to disable user defined fields in BCM forms Using Outlook 2
Diane Poremsky Disable Live Preview in Outlook and Word New Slipstick.com Articles 0
D Preventing users to disable an Outlook Add-in Using Outlook.com accounts in Outlook 5
F Disable "Find related messages" Using Outlook 1
davecazz Anyway to disable the peek rollovers? Using Outlook 1
L Reading Pane - COMPLETELY DISABLE? Using Outlook 10
M trying to disable junk email filter. completely. Using Outlook 4
Z OL2007 - is there a way to disable the "feature" that cripples mails that are in the "junk" folder? Using Outlook 37
B How do I REALLY disable Outlook Junk E-mail sorting in OL2010 and/or 2013? Using Outlook 1
R Outlook Cache Mode Terminalserver disable through Registry Using Outlook 1
S Cannot disable OWA light Exchange Server Administration 5
A How to disable the pop-up “Reponses to this meeting will not be tallied." Using Outlook 0
D Show this folder as an e-mail Address Book is enabled but I want to disable Using Outlook 2
Rupert Dragwater how to disable billingual dictionary in outlook 2010 Using Outlook 9
A Disable hotmail from Outlook email account Using Outlook 1
R Disable request to share a calendar Using Outlook 1
T Disable the To-Do Bar permanently Using Outlook 15
J Outlook's auto time zone update for meeting requestsHow to REMOVE or DISABLE? Using Outlook 1
D Disable Junk Email in the Registry? Using Outlook 8
D Disable Read Receipt Request for specific e-mail address Using Outlook 1
M cannot disable autoconfiguration popup/message in outlook 2007 Using Outlook 2
J Exchange 2010 + Disable ActiveSync/Outlook Anywhere/POP/IMAP/ By Default Exchange Server Administration 5
G Disable Outlook Web Access Password Expiry Notification Banner Using Outlook 4
M Is there a Step-by-Step how-to Disable and Attach a Mailbox to a Different User for Exhange 2010? Exchange Server Administration 4
E Outlook 2010 - Disable team calendars? Using Outlook 1
S Outlook 2010 PST Are disappering, Disable JunkMail ? Using Outlook 1
A How to disable bcc option in GAL - Address Book - Exchange 2007 Exchange Server Administration 4
J How do I disable the message: The contents of this appointment have been updated. Using Outlook 1
J CONTACTING SERVER...Message on Printing and forwarding certain html rich mails . How to disable. Using Outlook 3
P How to disable unwanted encoding in Outlook 2010/Exchange 2007? Using Outlook 4
P Exchange 2010 SP1 Cross Site CAS connection disable Exchange Server Administration 2
E Can't disable nuance pdf add-in Using Outlook 3
M i can't Disable Junk E-Mail filtering on a specific user mailbox Exchange Server Administration 1
K When printing an email the printer goes to manual feed every time. How do I disable this in Office Using Outlook 2
L OWA 2007 disable autocomplete Using Outlook 3

Similar threads

Top