To use Outlook 16.0 objects in a project (like an Excel macro), you must enable the reference:

Look for in the list and check it.