the CreateObject line.

before, i used

dim appword as word.application
Set appword = NEW word.application

but i received the same error. my guess is that because of the its of the NEW command. it worked when i first opened the MS word application manually then referenced the appword object to the word.application (Set appword = word.application)