Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
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: …
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…

861 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