Resolved:

Eding responded that there was an 'endif' statement missing in my macro, things seem well now.