mikes6058
asked on
save and send VBA code
The attached excel file contains a macro called "delete columns". The macro will delete a select group of columns. It will then move and copy the new data excluding the deleted columns to a new work book.
Could someone please add some code to the macro so the new workbook is then automatically saved as "member_database" and attached to an email. I will be manually entering a different email address each time the sheet is sent so the macro can stop at this stage.
Added bonus:
I do not want to save any changes to the original workbook. If anyone can add a line to the macro which also closes the original workbook without saving. It would be a great help
Thanks
Mike
delete.save.send.xlsm
Could someone please add some code to the macro so the new workbook is then automatically saved as "member_database" and attached to an email. I will be manually entering a different email address each time the sheet is sent so the macro can stop at this stage.
Added bonus:
I do not want to save any changes to the original workbook. If anyone can add a line to the macro which also closes the original workbook without saving. It would be a great help
Thanks
Mike
delete.save.send.xlsm
ASKER
I'm getting an error msg. See the link below for details
https://www.experts-exchange.com/questions/28692340/fix-send-attachement-VBA-code.html
https://www.experts-exchange.com/questions/28692340/fix-send-attachement-VBA-code.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
pls try
Open in new window
Regards