My issue was I added Microsoft OFFICE 16.0 Object Library when it should have been Microsoft WORD 16.0 Object Library in the VBA > Tools > References tab. The code created should work fine as long as you add the correct references!