Dear All,
Please, I need help with a SaveAs macro that will Print and SaveAs.
1. I have designed a form on a worksheet which needs to be populated with data from other worksheets in the workbook.
2. When that is complete, the form needs to be printed out and saved in a folder named ‘COMPLETE’ on the desktop.
3. The worksheet that houses the form has a number of command buttons used for some other purposes, but the PRINT AREA of the form has been defined as B9:M64
4. What I need is for the form to be printed out (when complete) based on the defined PRINT AREA and then SavedAs in the COMPLETE folder (using the name on Cell D7.
5. The saved copy should be the form that is printed out (as an ordinary form and not as a macro-enabled form/file)
6. I found a PRINT macro and SAVEAS macro differently. I combined both of them and tried to tweak it to give me the result that I desire. I ended up with the following:
7. The Print part on its own works OK. However, the SaveAs part does not work correctly. Tested on its own, the SaveAs part saves the entire worksheet (including all the command buttons on the sheet and the formulas in each of the cells, the worksheet tab name, etc.) That is not what I want.
8. I want what is printed to be just what is also SavedAs, please.
I should be grateful for help with the above (especially the SaveAs part) to enable me to achieve the outcome that I desire.
Thanks all for your help.
Newqueen
Bookmarks