• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA - Splitting data into new workbook and send emails

Hi,

I am looking for VBA code with the below requirement:

I have columns like Name, ID, State and zip code.

1. Filter data with State column
2. Copy all the respective rows along with the header into a new workbook (Different workbooks for each unique state code)
3. Save the workbooks in a given path with name as state code
4. Send each workbook as separate email as an attachment.
5. Email address should fetch with the help of vlookup with state code in a different spreadsheet.

Thank you so much for your help in advance.

Regards,
Mahesh Babu
 

Attachments

  • Sample VBA.xlsx
    9.3 KB · Views: 5
Back
Top