Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. zigenz

    Find an object in a class collection

    Apologies again, slight error in the code... for inLine= 2 to 10 Set aElem = New clPipe aElem.inRow = inLine aElem.sbReadExcel "Feuil1", inLine ' Add some code to generate a unique key here. It could be as simple as key = "Pipe" & CStr(inline-1) If Not alinks.Exists(key) Then alinks.Add...
  2. zigenz

    Find an object in a class collection

    Sorry, I should have said "You can NOW reference your elements using the string key as desired."
  3. zigenz

    Find an object in a class collection

    You will want to use a Dictionary Firstly, reference the Scripting runtime and add a variable for the key in your declarations section, i.e.: Set alinks = CreateObject("Scripting.Dictionary") Dim key as String Now each time you add an element to the array, you can specify a string key, i.e...

Part and Inventory Search