MolWeight Property

Applies To:

Molecule object


The molecular weight of the Molecule object.


Double Molecule.MolWeight




The following Visual Basic code searches the current document for molecules having the same molecular weight as the target molecule.

Dim TargetMolecule As Object 'Molecule object
Dim molQuery As Object         'Required argument for Search
Dim MolWt As Double             'Molecular weight
Dim MolWtQuery As String      'To hold mol weight as string
Dim FinderDoc As Object        'ChemFinder database

Set molQuery = Nothing           'Set to null
MolWt = TargetMolecule.MolWeight 'Get mol weight
MolWtQuery = MolWt               'Cast MolWt as string

'Search the database by molecular weight as string
FinderDoc.Search molQuery, , MolWtQuery

See Also:

Search Method

2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA