<div dir="ltr">Hi dear all,<br><br>I tried to implement a loop based on a list attribute. For the loop work effectively, a Variable XName should get the name of List object. I need to that because, there is many list objects (48) and all list objects have the same child objects. The only difference is inline objects. However, with defining a variable holding list name, inline objects will also be same and therefore, the amount of script line will considerably decease (otherwise, script is too long to be complied error for 48 List and with all child objects. And increasing GDI will not solve the problem). <br><br>So, I would very appreciate, if there is any suggestion to set a variable  XName which will take the name of list  (For each list object, There is list object attribute called ListName holds the name of list such as lis1.). Further, this XName will be used to terminate the list.<br><br>Best,<br><br>Z.Baran<br><br>inline object....................<br><br>Dim XName As Variant<br>'''c.SetAttrib c.GetAttrib("ListName") XName<br><br>c.SetAttrib "ListName", XName<br><br>If OriginalSet.RESP = "{SPACE}" Then<br>         XName.Terminate<br>GoTo ExitForSet<br>Else <br>         Counter01= Counter01 + 1<br>End If <br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/4ac73c62-7365-40a8-b70b-4438adc8e202%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/4ac73c62-7365-40a8-b70b-4438adc8e202%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />