What version of GP is this for?
If this is GP9, you can download RetrieveGlobals9 from either CustomerSource
or PartnerSource; just do a search for it.
If 10 or later, you do not need RetrieveGlobals anymore. Instead, simply use
the UserInfoGet object. You do not need to add a reference for this or even
explicitly instantiate it because it is part of the Dynamics VBA library.
Here is an example on opening a ADO Connection:
Private Function OpenConnection() As ADODB.Connection
Dim oConn As ADODB.Connection
Set oConn = UserInfoGet.CreateADOConnection
oConn.CursorLocation = adUseClient
oConn.DefaultDatabase = UserInfoGet.IntercompanyID
Set OpenConnection = oConn