Refined Word and Excel generation