For more recent versions of Office for Mac, you will need to trust access to the VBA project object model for vba-blocks to work correctly: Trust access to the VBA project object model Open Excel ...