Of course it is possible, but that is NOT what you asked for:
It is always best to present your complete set of requirements in your initial post.
Please read:
Tip: How Do I Get The Best Answer in the Shortest Time?
Sorry, I don't have any more time right now. You can just run the Macro for each prefix you need. Further modifications will be left as an exercise for the student. This is the best way to learn.
Try making the mods yourself. If you really get stuck, post back with your Macro and specific questions, and maybe someone can help.