Thanks!Good catch with the comma in GetObject.
You're right, this morning the function didn't work again, probably because Word wasn't running. After making the following changes I got it to work:I would still include the CreateObject line either with On Error Resume Next (like you had in your first post) or On Error Go To someline and CreateObject there (preferrable).
Code:
On Error Resume Next
Set objWord = GetObject(, "Word.Application")
If Err.Number <> 0 Then 'Word isn't already running
Set objWord = CreateObject("Word.Application")
blnCreated = True
End If
On Error GoTo 0