title: object required CANoe
body: <p>The error is:</p>
  
  <blockquote>
    <p>object required: ''; code: 800A01A8.</p>
  </blockquote>
  
  <p>At this line:</p>
  
  <pre><code>Set gECU.Name = "random name"
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>Dim app, config, generalSetup, XCPSetup, ECUs, ECU, gECU, gDBSignals
  
  Set app          = CreateObject("CANoe.Application")
  Set config       = app.Configuration
  Set generalSetup = config.GeneralSetup
  Set XCPSetup     = generalSetup.XCPSetup
  Set ECUs         = XCPSetup.ECUs
  
  'Add a new ECU with XCP on CAN
  Set ECU = ECUs.Add("D:\Script_CANoe_Automation\INPUTS\path.A2L", cTlFlex)
  Set gECU.Name = "random name"
  </code></pre>