In Office 2016 for Mac, there is a new condition called MAC_OFFICE_VERSION to check the version of VB that the user is launching. The following example shows how to use it in code:
Sub VersionConditionals()
Debug.Print "We are running on Mac 15+"
Debug.Print "We are not running on Mac 15+"
Debug.Print "We are running on a Mac"
Debug.Print "We are not running on a Mac"
End Sub
Note. The “#If Mac” condition remains unchanged from Office for Mac 2011.
source
share