title: Macro with SAPGUI Scripting : SAPLMEGUI:0013, the last number changes in each connexion to SAP
body: <p>I have a macro which worked fine at first, until it's stopped working after deconnecting and reconnecting to SAP being connected for the second time.</p>
  
  <p>I noticed that the issue is that, in each connection, this part of the SAPGui script changes: "SAPLMEGUI:0013", to be more specific, it's only the last number that changes each time. </p>
  
  <p>I'm seeking for help as I still have difficulties finding the correct way to do it.
   I thought about doing something like this in order to resolve the issue(but it doesn't work):</p>
  
  <pre><code>sub verifyAddress()
  
  'an Array to go through all the possible addresses
  tabl = Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
  
  'Looking for the correct address
  for i = Lbound(tabl) to UBound(tabl)
  SAPLineToBeChecked = "wnd(0)/usr/subSUBO : SAPLMEGUI:001" &amp; tabl(i) &amp; "/subSUB2...."
  
  'check the next address
  on error resume next
  session.findByID(SAPLineToBeChecked).cartePosition = 0
  next
  end sub
  </code></pre>
  
  <p>thank you in advance :)</p>