@thaug29 Are the lines after the 'if' statement correctly indented? If you can post the macro within code tags (</> icon on the message formatting bar) it should show indentation. This macro is also calling a lot of sub-macros, so without posting all of them, it's hard to say where it's causing problems.
Ian