![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: 2003, after, exchange, folder, migration, views |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I added a customised folder view using some modified vb code that i changed to use in vba (see code at end). This created customised view for a specific folder at work. The migrated across to exchange 2003 and now the acutal 'fields' in the view still exist but are blank for any new emails that are forwarded into the folder with the customised view, all the old emails are fine only new ones. Could anyone please help with what I need to do to fix this as no one hear can help me (at work). Using Outlook 2002 sp3. thanks heaps matt Sub CreateView() 'Creates a new view 'need to also turn on the "Microsoft Scripting Runtime" reference library on before running Dim olApp As Outlook.Application Dim objName As NameSpace Dim objViews As Views Dim objNewView As View Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") Set olApp = Outlook.Application Set objName = olApp.GetNamespace("MAPI") Set objViews = objName.GetDefaultFolder(6).Views Set objNewView = objViews.Add(Name:="RIM Fields", _ ViewType:=olTableView, SaveOption:=olViewSaveOptionAllFoldersOfType) objNewView.XML = fs.opentextfile("insert file path").readall objNewView.Save End Sub AND THE XML FILE READS LIKE THIS BELOW... ?xml version="1.0" ? - view type="table" viewnameRIM Fields/viewname viewstylefont-family:Tahoma;font-style:normal;font-weight:normal;font-size:8pt;color:Black;table-layout:fixed;width:100%/viewstyle viewtime211843832/viewtime linecolor8421504/linecolor linestyle3/linestyle collapsestate / rowstylebackground-color:#ffffff/rowstyle headerstylebackground-color:#d3d3d3/headerstyle previewstylecolor:Blue/previewstyle - column nameHREF/name propDAV:href/prop checkbox1/checkbox /column - column headingImportance/heading propurn:schemas:httpmail:importance/prop typei4/type bitmap1/bitmap width10/width styletext-align:center;padding-left:3px/style /column - column headingTicker/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Ticker/prop typestring/type width29/width styletext-align:left;padding-left:3px/style /column - column headingCompany Name/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Company%20Name/prop typestring/type width29/width styletext-align:left;padding-left:3px/style /column - column headingIndustry Name/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Industry%20Name/prop typestring/type width29/width styletext-align:left;padding-left:3px/style /column - column headingHeadline/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Headline/prop typestring/type width28/width styletext-align:left;padding-left:3px/style /column - column headingAnalyst Name/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Analyst%20Name/prop typestring/type width28/width styletext-align:left;padding-left:3px/style /column - column headingRating/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Rating/prop typestring/type width28/width styletext-align:left;padding-left:3px/style /column - column headingMarket Cap/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Market%20Cap/prop typefixed.14.4/type width30/width styletext-align:right;padding-left:3px/style displayformat1/displayformat /column - column headingPublish City Code/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Publish%20City%20Code/prop typestring/type width27/width styletext-align:left;padding-left:3px/style /column - column headingSource/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Source/prop typestring/type width28/width styletext-align:left;padding-left:3px/style /column - column headingEffective Date time/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Effective%20Date%20time/prop typedatetime/type width28/width styletext-align:left;padding-left:3px/style formatM/d/yyyy||h:mm tt/format displayformat2/displayformat /column - column headingReceived/heading propurn:schemas:httpmail:datereceived/prop typedatetime/type width35/width styletext-align:left;padding-left:3px/style formatM/d/yyyy||h:mm tt/format displayformat2/displayformat /column - column headingRating Delta/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Rating%20Delta/prop typestring/type width33/width styletext-align:left;padding-left:3px/style /column - column headingPrev Rating/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Prev%20Rating/prop typestring/type width34/width styletext-align:left;padding-left:3px/style /column - column headingCountry of Domicile/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Country%20of%20Domicile/prop typestring/type width34/width styletext-align:left;padding-left:3px/style /column - column headingEst Delta/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Est%20Delta/prop typestring/type width15/width styletext-align:left;padding-left:3px/style /column - column headingQuant Rating/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Quant%20Rating/prop typestring/type width34/width styletext-align:left;padding-left:3px/style /column - column headingTSE/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/TSE/prop typestring/type width10/width styletext-align:left;padding-left:8px/style /column - column headingCountry Rating Delta/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Country%20Rating%20Delta/prop typestring/type width10/width styletext-align:left;padding-left:8px/style /column - column headingCountry Rating/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Country%20Rating/prop typestring/type width10/width styletext-align:left;padding-left:8px/style /column - column headingPrev Country Rating/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Prev%20Country%20Rating/prop typestring/type width10/width styletext-align:left;padding-left:8px/style /column - column headingTech Rating/heading prophttp://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Tech%20Rating/prop typestring/type width10/width styletext-align:left;padding-left:8px/style /column - orderby - order headingReceived/heading propurn:schemas:httpmail:datereceived/prop typedatetime/type sortdesc/sort /order /orderby groupbydefault2/groupbydefault - previewpane visible1/visible markasread0/markasread previewwidth0/previewwidth previewheight500/previewheight /previewpane /view |
| Ads |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exchange Global Address List views in OL2007 | JohnH | Outlook - Using Contacts | 1 | March 4th 08 05:57 AM |
| Exchange migration + customized calendar labels | jdr.smith@virgin.net | Outlook - Calandaring | 0 | August 28th 07 01:41 PM |
| Do I need auto. generate MS Exchange views in regular OL 2007 ? | CGordy | Outlook - Installation | 1 | July 14th 07 07:11 AM |
| Lost contacts and email in 5.5 to 2003 exchange migration... | Chunt | Outlook - Installation | 0 | March 21st 07 03:48 PM |
| Outlook 2003 Migration / exchange question | Arne | Outlook - Installation | 0 | March 19th 07 12:27 PM |