VBA and barcode

In CorelDraw 16, through VBA, I created a barcode: CorelScript.InsertOLEObject "CorelBarCode.16". In X7 / X8, this does not work. How in older versions to use barcode in VBA?