Just as a suggestion, it may be worth breaking this down a little bit, paragraphs or something similar?

I think it could increase your chance of getting an answer on whatever it is.

Also, from the first few lines it sounds like it may be a vba question? In which case you want it in the VBA/Macros forum and not in the formula forum.