Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>object variable not set</code> means that you are trying to call methods or access properties on an un-initialized object. I don't see anything like that in the code snippets you have published, are you sure the error occurs in those lines?</p> <p>A good way to pin-point errors is to include the module and line number in the error message. Add this around your subroutine to get a more detailed message:</p> <pre><code>Sub Initialize On Error Goto errorthrower // // your code goes here... // Exit sub ErrorThrower: Error Err, Str$(Err) &amp; " " &amp; Error &amp; Chr(13) + "Module: " &amp; Cstr( Getthreadinfo(1) ) &amp; ", Line: " &amp; Cstr( Erl ) End sub </code></pre> <p>(I originally found this on <a href="http://www.ferdychristant.com/blog//articles/DOMM-6BPT8R" rel="nofollow noreferrer">Ferdy Christants</a> blog)</p> <p>It's not quite clear what problem you are trying to resolve here, but it looks like you have 1..50 "managers" that can have 1..100 "ideas" ? I'd make a <code>class</code> for managers instead:</p> <pre><code>Class manager Private managername As String Private ideas(1 To 100) As String Sub new(managername As String) Me.managername=managername End Sub // whatever methods you need.... End Class </code></pre> <p>Then, I'd keep track of them with a list of these objects:</p> <pre><code> Dim managerlist List As manager Dim key As String key = Strconv(tempmanagername,3) if not iselement(managerlist(key)) then set managerlist(key) = new manager(key) end if Dim currentmanager As manager Set currentmanager = managerlist(key) </code></pre> <p>This is only an example to get you started, you will have to adapt this to solve your actual problem. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload