You had better make sure - as you are running this code from Excel - that you have the WORD reference library actually referenced! Otherwise....you should get that error.