Vba Excel 2019, I had to put the object name "Excel" in front of AddIns as it wouldn't work without.