ChemDraw Excel API

12.0 API methods have been exposed via ChemDrawExcel12.xla. In all cases, the last argument(s) reports the success of the function.

CSXL_ImportTable_File(ByVal sPath As String, ByVal Cell As Range, ByRef bImported As Boolean)
    Import the file indicated by sPath to the location indicated by Cell. The file may be of any type supported by CDXL.
CSXL_ExportTable_File(ByVal sPath As String, ByVal Table As Range, ByRef nRecordsExported As Long, ByRef bExported As Boolean)
    Export the indicated range of cells to the file indicated by sPath. The file may be of any type supported by CDXL.

CSXL_LoadMolecule_File(ByVal sPath As String, ByVal Cell As Range, ByRef bLoaded As Boolean)
    Load molecule from the file indicated by sPath into the given cell. The file may be of any type supported by CDXL.
CSXL_SaveMolecule_File(ByVal sPath As String, ByVal Cell As Range, ByRef bSaved As Boolean)
    Save molecule in the given cell to the file indicated by sPath. The file may be of any type supported by CDXL.

CSXL_ShowStructureDrawings(ByVal InputRange As Range, Optional ByRef bShowed As Boolean)
    Show the structure drawings for the cells indicated.
CSXL_HideStructureDrawings(ByVal InputRange As Range, Optional ByRef bHid As Boolean)
    Hide the structure drawings for the cells indicated.

CSXL_ConvertCSWorksheet(Worksheet as Worksheet, Optional ByRef bConverted As Boolean)
    Convert given worksheet to a ChemOffice worksheet.
CSXL_ConvertSMILES(ByVal InputRange As Range, Optional ByRef bConverted As Boolean)
    Convert SMILES strings in the given cells to structures.