I have been using some Outlook 2007 macros successfully for some time ... such as:
Sub Blue()
Dim objDoc As Word.Document
Dim objSel As Word.Selection
Set objDoc = Application.ActiveInspector.WordEditor
Set objSel = objDoc.Windows(1).Selection
objSel.Font.Color = wdColorBlue
Set objSel = Nothing
Set objDoc = Nothing
End Sub
But this one gives an error (ActiveX component can't create object):
Sub SingleSpace()
Dim objDoc As Word.Document
Dim objSel As Word.Selection
Set objDoc = Application.ActiveInspector.WordEditor
Set objSel = objDoc.Windows(1).Selection
objSel.ParagraphFormat.LeftIndent = InchesToPoints(0)
Set objDoc = Nothing
Set objSel = Nothing
End Sub
Complains about the "objSel.ParagraphFormat.LeftIndent" line. Any suggestions?
Sub Blue()
Dim objDoc As Word.Document
Dim objSel As Word.Selection
Set objDoc = Application.ActiveInspector.WordEditor
Set objSel = objDoc.Windows(1).Selection
objSel.Font.Color = wdColorBlue
Set objSel = Nothing
Set objDoc = Nothing
End Sub
But this one gives an error (ActiveX component can't create object):
Sub SingleSpace()
Dim objDoc As Word.Document
Dim objSel As Word.Selection
Set objDoc = Application.ActiveInspector.WordEditor
Set objSel = objDoc.Windows(1).Selection
objSel.ParagraphFormat.LeftIndent = InchesToPoints(0)
Set objDoc = Nothing
Set objSel = Nothing
End Sub
Complains about the "objSel.ParagraphFormat.LeftIndent" line. Any suggestions?