+ Reply to Thread
Results 1 to 4 of 4

VBA scrip to filter spreadsheet, save filtered data and email as attachment

  1. #1
    Registered User
    Join Date
    03-28-2019
    Location
    Melbourne
    MS-Off Ver
    2010
    Posts
    2

    Question VBA scrip to filter spreadsheet, save filtered data and email as attachment

    Hi all,

    I have an excel spreadsheet with sales data, column range A - AQ

    I need a macro that will automatically filter the data, save spreadsheet and send 3 types of email
    1- to the sales person - their unique id is in column AB, email in column AC and name in column AD
    2- the sales person Manager - their unique id is in column AG, email in column AN and name in column AJ
    3- the department Manager - their unique id is in column AO, email in column AP and name in column AQ

    Each email Subject should have: "Sales data for" today's date

    Body of email "" for each type of email should be customized
    1- Dear Column AD, find attached your sales data
    2- Dear Column AJ, find attached your employees sales data
    3- Dear Column AQ, find attached your department sales data
    Attached Files Attached Files
    Last edited by Djxela; 04-14-2019 at 03:51 AM. Reason: sample file

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA scrip to filter spreadsheet, save filtered data and email as attachment

    Hi, welcome to the forum.
    It can de done and there are several posts with a similar request, you'll have to do an advanced search but I suggest you attach a sample file with the lay-out and some non-sensitive data en fake email addresses.
    Will make it easier to help than giving you a solution and you having to modify it again to suit your needs
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    03-28-2019
    Location
    Melbourne
    MS-Off Ver
    2010
    Posts
    2

    Re: VBA scrip to filter spreadsheet, save filtered data and email as attachment

    Hi Keebellah,
    Thanks for the feedback. I have attached a small sample.
    I will try to try you suggestion of advanced search.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA scrip to filter spreadsheet, save filtered data and email as attachment

    Okay, I'll see if I can help, do you have any experience with macros and VBA code?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Rule to file email in email folder, save the attachment to desk top and update spreadsheet
    By JET2011 in forum Outlook Formatting & Functions
    Replies: 49
    Last Post: 08-29-2018, 12:49 PM
  2. VBA - To save attachment from email to folder
    By narindran in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2016, 11:35 PM
  3. Replies: 0
    Last Post: 02-18-2014, 01:13 PM
  4. Trying to save email by attachment name using VBA code
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2012, 04:29 PM
  5. Need a macro to filter data then email filtered data through lotus notes (or print)
    By Crimson Bourne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2012, 01:26 PM
  6. Replies: 7
    Last Post: 12-28-2005, 11:25 AM
  7. Replies: 1
    Last Post: 08-25-2005, 02:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1