I do something similar for generating SQL statements. Using a really simple example, you need to insert 500 values into a table, all listed in a worksheet. Then in another worksheet you write the SQL with a place holder:
Insert into myTable (Field1) Values(&VAL)
Then you write a macro that writes out one row per value to a text file. As it writes them out, the placeholder &VAL is replaced by the value in the main worksheet.
This is in its simplest form. In reality the SQL is many lines long and quite complex, with many placeholders and additional logic to build the statements. I guess Kozma is doing the same to generate repetitive code.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt