Returns the code or name of the specified name or code.
object.LookupCode ( CodeName ) |
- CodeName
- Required. A Variant that specifies the name or code to lookup.
Variant
Use the LookupCode method to lookup the names of unit codes returned by the GeographicUnit and ProjectionUnit properties, projection type codes returned by the Projection property, and transformation method type codes returned by the Method property. You can also use the LookupCode method to lookup the codes of any of these names. For example, if you want to display the name of the transformation method used by the current map's coordinate system, you can use the following code:
Set CS = Application.Map.CoordinateSystem
MsgBox "Method Type: " & CS.LookupCode(CS.Method)
Set CS = Application.Map.CoordinateSystem
MsgBox "Method Type: " & CS.LookupCode(CS.Method)