I'm not sure if I asked the appropriate questions in my last post to get a clear answer. So we'll try again!
I have code which will highlight fields left blank after a mail merge has occurred. However, this code is all static in nature. That is, every merge field is coded "behind the macro" so that it cycles through each and every one. (a lot of repetitive code being used, just for different merge fields.) What I'd like to know is if there is a way to dynamically loop through a Word document and if any given merge field within it is blank, .... I'll highlight it. So if I have 35 merge fields, I'll have one block of "highlighting" code and loop through it 35 times instead of 35 blocks of the same code.
Any help is greatly appreciated and if I've been unclear or there is anyone willing to give this a shot please let me know!!!!!!!
Thanks in advance for anything you can toss my way!
Dan
I have code which will highlight fields left blank after a mail merge has occurred. However, this code is all static in nature. That is, every merge field is coded "behind the macro" so that it cycles through each and every one. (a lot of repetitive code being used, just for different merge fields.) What I'd like to know is if there is a way to dynamically loop through a Word document and if any given merge field within it is blank, .... I'll highlight it. So if I have 35 merge fields, I'll have one block of "highlighting" code and loop through it 35 times instead of 35 blocks of the same code.
Any help is greatly appreciated and if I've been unclear or there is anyone willing to give this a shot please let me know!!!!!!!
Thanks in advance for anything you can toss my way!
Dan