Major Property Example

The following example uses the Major property to return the major version number of the specified Reference object in a particular project.

Debug.Print Application.VBE.VBProjects(1).References(1).Major