Hi Guys,
i have code:
and function:
what i am doing here is creating dictionary for t_loop table.
For each row in this table i will be creating new workbook with data.
Next i am creating dictionary for t_cource - this is my dictionary data.
And problem is within looping within my dictionary (From for each vakeytop in DicLoop).
For each variable in t_source Atributes column i am searching for matching string within each row in t_loop table.
(If InStr(DicLoop(varkeytop), LandscapeVar) > 0 Then)
example:
For system in second column in t_source table i will check this if:
If InStr(DicLoop(varkeytop), LandscapeVar) > 0 Then, --> here LandscapeVar is "System" so if statement will go further and find which system number should be taken (SystemVar)
For object i will check this if also, and for Method i will check this if also.
It is ok for ID1 in t_loop because i have 3 variables there inputed by user.
Problem is with ID2 where there are only 2 variables: Object1 and System1.
Here i want only run my if statement for System and Object from table t_source.
I do not want to loop unnecessarily also for Method value here...
How can i do it?
Maybe it is better way then looping always for each value in t_source table?
Please help,
Jacek
Bookmarks