You REALLY want to move this to VBA. If you leave it here, somebody might suggest a RegEx solution, which won't do you any good at all.