Solved

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

Posted on 2003-12-06
3
779 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Get an idea of what you should include in an email disclaimer with these Top 5 email disclaimer tips.
Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now