I use the code described in this post a lot: Formatting appointment body
It works most of the time, but sometimes has this error:
4605 This method or property is not available because the property is locked for editing
But then the next time it works fine. Any ideas how I can avoid this error? Here is some of my code:
Set objItem = olAppt ' Application.ActiveInspector.currentItem
Set objInsp = objItem.GetInspector
Set objDoc = objInsp.WordEditor
Set objWord = objDoc.Application
Set objSel = objWord.Selection
objSel.PasteAndFormat (wdFormatOriginalFormatting)'Code errors here