Advertisement
burssen

log

Feb 24th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/save-a-form-with-the-item-one-off-forms
  2.  
  3. https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/item-types-and-message-classes
  4.  
  5. https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/change-the-icons-associated-with-your-form?f=255&MSPPError=-2147217396
  6.  
  7. http://www.outlookcode.com/threads.aspx?forumid=2&messageid=15991
  8.  
  9. Sub ok()
  10. ' Change the following line to your new Message Class
  11. NewMC = "IPM.Appointment.Myform"
  12. Set CurFolder = Application.ActiveExplorer.CurrentFolder
  13. Set AllItems = CurFolder.Items
  14. NumItems = CurFolder.Items.Count
  15. ' Loop through all of the items in the folder
  16. For I = 1 To NumItems
  17.   Set CurItem = AllItems.Item(I)
  18.   ' Test to see if the Message Class needs to be changed
  19.   If CurItem.MessageClass <> NewMC Then
  20.    ' Change the Message Class
  21.   CurItem.MessageClass = NewMC
  22.    ' Save the changed item
  23.    CurItem.Save
  24. End If
  25. Next
  26. MsgBox "Done." & NumItems
  27. End Sub
  28.  
  29. http://www.outlookcode.com/article.aspx?ID=39
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement