Solved

Outlook Custom View and changing Field Names Public Shared Folder Can Be Done In VB?

Posted on 2003-12-06
3
790 Views
Last Modified: 2007-12-19
I am the owner of a shared (75 users) Outlook public folder that is on an Exchange server.
How can I change the names of outlooks fields ie mileage and have it updated/so the 75 users can see the new fields names and views without me going around to every pc.
I tried to defined views and have no luck with in getting all of the subfolders (I am the owner) to work.
Can oyu tell me if this can be done in VB, Visual Basic 5 or 6?
In other words - I want to create a view using outlooks fields with the option to drag the fields in the group drag box (rt click on title and select group by box), drag fields to top to group.
Thanks
0
Comment
Question by:buyitnow
  • 2
3 Comments
 
LVL 13

Expert Comment

by:stefri
ID: 9891617
did you try:
in the view, right click the header label, format columns then modify Label
You cant change mileage as it is an outlook internal field but you can change was is displayed
stefri
0
 

Author Comment

by:buyitnow
ID: 9893436
I am looking for VB, Script, Visual Basic code, COM, ActiveX or an answer on how to force an Outlook view on the other users pcs.I was able to change the column display names.
0
 
LVL 13

Accepted Solution

by:
stefri earned 500 total points
ID: 9923331
you create specific views with the column display names set to what you want and restrict the use of views to the views you have created
This is done in View/define view
show only created views for that folder
Right click the Public folder/Administration Set initial view on folder to: yourView

stefri
PS: Outlokk object model documentation (ol2002) shows:
XML Property

Returns or sets a value that specifies the XML definition of the current view. The XML definition describes the view type by using a series of tags and keywords corresponding to various properties of the view itself. When the view is created, the XML definition is parsed to render the settings for the new view. Read/write String.

expression.XML

expression   Required. An expression that returns a View object.

Example
Returns or sets a value that specifies the XML definition of the current view. The XML definition describes the view type by using a series of tags and keywords corresponding to various properties of the view itself. When the view is created, the XML definition is parsed to render the settings for the new view. Read/write String.

expression.XML

expression   Required. An expression that returns a View object.

Example
The following example creates a new view and displays its XML definition in the Immediate Window.


Sub XMLView()
'Creates a new view and displays the XML definition
'in the immediate window

    Dim olApp As Outlook.Application
    Dim objViews As Views
    Dim objView As View

    Set olApp = Outlook.Application
    Set objViews = _
    olApp.GetNamespace("mapi").GetDefaultFolder(olFolderInbox).Views
    Set objView = objViews.Add _
       ("New Table View", olTableView, olViewSaveOptionAllFoldersOfType)

    Debug.Print objView.XML

End Sub
The modified properties which are visible in the following XML source code. In addition to the property definitions, the XML source also defines any objects  that make up the view. The following example displays the XML definition of columns that appear in the above view.

<column>
    <heading>Flag Status</heading>
    <prop>http://schemas.microsoft.com/mapi/proptag/0x10900003</prop>
    <type>i4</type>
    <bitmap>1</bitmap>
    <style>padding-left:3px;text-align:center;padding-left:3px</style>
</column>
<column>
    <format>boolicon</format>
    <heading>Attachment</heading>
    <prop>urn:schemas:httpmail:hasattachment</prop>
    <type>boolean</type>
    <bitmap>1</bitmap>
    <style>padding-left:3px;text-align:center;padding-left:3px</style>
    <displayformat>3</displayformat>
</column>


0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question