So you want to create code dynamically.
First, post a non-macro example of the code you want to run for a single instance.
Next, post the same code for another single instance, so we can see what changes between them.
Third, post the data you have from which you want to develop the dynamic elements of that code.
... View more