Yes it can be done, but what you're now asking is a far cry from what you originally described.
How about setting out your requirements in full, including:
• which application (Excel, Outlook, Word) the whole process is to be run from;
• where the Excel workbook is to be found;
• where in the Excel the data is sourced;
• where the document template is to be found;
• where in the document template the Excel data are to do;
• what folder the new document is to be saved to;
• how the code is to determine which email to attach the document to;
and so on.
Then, and only then, might someone here be able to help you.