A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Losing format after any movement on the folder



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 30th 09, 01:37 PM posted to microsoft.public.outlook.program_vba
Alberto[_2_]
external usenet poster
 
Posts: 28
Default Losing format after any movement on the folder


Hello, i've written a macro just to open a folder and to apply an specific
view. In this view some of the mails are colored. As soon as i click on the
button which run the macro i change to the folder and see the correct view
but as long as I scroll through the messages the format will be lost in most
of the cases. The only way to see correctly this view to me ist just
clicking on the normal folder pane, which is that I'm trying to avoid with a
button.

Here is the code:

Dim MyFolder As MAPIFolder
Dim Vista As view

Set MyFolder= GetFolder("xxxxxxxx\NameOfTheFolder") 'Sue's function
Set Outlook.ActiveExplorer.CurrentFolder = MyFolder
Set MyView = MyFolder.Views.item("PersonalView")
Vista.Apply


Thanks in advance for your answers

Alberto
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Movement of Windows XP Outlook Express contacts into Windows Vista Microsoft Outlook 2007 L.A. Outlook - Using Contacts 2 September 22nd 09 01:27 PM
Outlook 2007 Losing Folder View Settings Jason Dunn Outlook - General Queries 8 December 18th 08 08:26 PM
How do you move an outlook folder elsewhere w/o losing the info Michael Outlook - General Queries 2 July 14th 08 08:48 PM
Regarding movement of selected messaged in outlook express. Vishal[_2_] Outlook Express 4 May 16th 08 07:00 PM
how do I move an appt to another calendar folder w/o losing occura tessie Outlook - Calandaring 2 April 28th 08 08:00 PM


All times are GMT +1. The time now is 03:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.