Problem was VBAProject name was same as Function. Fixed by changing project name.