That sounds like the Document is locked for editing. If you cannot unlock it
you won't be able to use the Word object model on the Document object. If
that won't work then you might have to parse the HTMLBody property and look
for where the font size is defined and change it there using text and string
parsing functions.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Andreas" <(E-Mail Removed)> wrote in message
news:97bca26c-78f9-4a5f-b62b-(E-Mail Removed)...
The following is what I got now after trial and error typing ;-)
-------------<SNIP>---------------
Sub Schriftgroesse()
Dim objInspector As Inspector
Dim olInspector As Inspector
Dim objDoc As Object
Set objInspector =
Application.ActiveExplorer.Selection(1).GetInspector
objInspector.Activate
Set objDoc = Application.ActiveInspector.WordEditor
With objDoc.Windows(1).Selection
.WholeStory
.Font.Size = 10
End With
End Sub
-------------<SNIP>---------------
By any reason the line
.Font.Size = 10
causes an error which says in German:
"Laufzeitfehler '4605'
Diese Methode oder Eigenschaft ist nicht verfügbar, weil das Dokument
für Bearbeitung gesperrt ist."
In English this should mean
"Runtimeerror '4605'
This method or feature is not available, because the document's
editing is blocked."
How can I solve this problem?
Thank you for answers in advance,
Andreas