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
L Is there a way to completely disable the "archive" box? Using Outlook 1
M Disable Contact Card Results when using "Search People" in Outlook Ribbon Using Outlook 7
U Disable "Always ask before opening" Dialog Using Outlook 3
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 Using Outlook 0
E Outlook 2010 disable date auto-complete Using Outlook 2
Diane Poremsky Disable Outlook Add-ins (Apps) Using Outlook 0
J Using VBA to disable alerts / warnings Using Outlook 2
Diane Poremsky Disable the Unsafe Hyperlink Warning when Opening Attachments Using Outlook 0
N How to disable user defined fields in BCM forms Using Outlook 2
Diane Poremsky Disable Live Preview in Outlook and Word Using Outlook 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
A How to disable bcc option in GAL - Address Book - Exchange 2007 Exchange Server Administration 4
P disable image compression Using Outlook 5
J Disable outlook 2010 no-subject warning Using Outlook 4
E Disable outlook 2010 no-subject warning Using Outlook 9
C Disable printing Outlook VBA and Custom Forms 1
A disable a menu in active inspector Outlook VBA and Custom Forms 1
N Disable control CTRL button when dragging items/folders - Outlook Outlook VBA and Custom Forms 2
D Disable Junk E-mail Filter in Outlook 2007 Using Outlook 13
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
A how to disable spell checker Outlook VBA and Custom Forms 4
P Disable Instant Search in Outlook 2007 Outlook VBA and Custom Forms 9

Similar threads

Top