Hello mana - your post works great for me, but I have one more question to something that I cannot figure out.

In your formula above, how would I pass a variable to the sheet name. In your example the sheet name is "Template_0". I would like to pass a variable called "MachID" to this position, and of course the MachID variable would would have the sheet name definition in it.

Any help would be greatly appreciated!