Referencing:

You can use either early or late binding in your code but if you chose to use early binding then you need to add it to the References in your application first.


Early Binding:

Has the advantage of integration into your IDE which helps you write the correct code.

In Office, select [Tools] [References] in your VBA  IDE.  In VB6, select [Project][References] in you VB6  IDE


 


Scroll down and select "Performance_Monitor"