Probably. That's the kind of thing Macros are for (not that I would know how to write one for MS Word, I tried my first Open Office one just now.)