Results 1 to 16 of 16

VBA to email specific data from a table to multiple people

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-10-2014
    Location
    New Jersey
    MS-Off Ver
    2010 & 2013
    Posts
    276

    VBA to email specific data from a table to multiple people

    Hi All,

    I have an excel sheet that has data in columns A through X. My end goal is to create an email for each account, and each division to send to managers
    in my office. We have four different warehouses that hold stock. If an order comes in and the stock is not available in the default warehouse we must
    request to move them to another warehouse. If an order comes in and an item is not already allocated we need to request to allocate that item. My sheet
    allows us to automate the request part of the process however I have been unable to come up with a way to create a code that will automatically send
    an email to each of the different divisions once all of the requests have been created.

    In my example I have two different accounts. Under one of the accounts there are 6 different divisions. This means an email needs to be sent with the
    items for that division to a specific person. Not only that, but all of the requests must be in order. If a few items need to be moved to 1001 then it must
    appear as below on the email:

    Can I move to 1001?
    Item1 x"quantity needed"
    Item2 x"quantity needed"

    Then the next set of requests would be listed with a space below that:

    Can I move to 1002?
    Item3 x"quantity needed"
    Item4 x"quantity needed"

    If there is not a way to do this in one step, I created what the results may look like if I were able to come up with a code to first extract the data to new columns
    in order of how they should appear. The results can be found in columns AA through AG. However, if someone is able to come up with a code to do this all at once,
    the emails should appear as below.

    First email:
    To: "Specific email address for division 1"
    Subject: "Account name"

    Can I allocate in 1031?
    9130203H048 x96

    New email:
    To:"Specific email address for division 6"
    Subject:"Account name"

    Can I allocate in 1001?
    93012Z x72

    Can I allocate in 1002?
    93012Z x144

    This process would repeat until all of the divisions are covered for the first account and would then need to be done for the next account. I am praying someone out there
    is able to come up with something because this would save me and coworkers a whole lot of time.
    Attached Files Attached Files
    Last edited by Teblol; 05-24-2016 at 12:31 PM. Reason: updated the name

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extract data from table
    By etaver87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2016, 10:23 AM
  2. Need to extract data from table.
    By scottjwe in forum Excel General
    Replies: 1
    Last Post: 06-18-2015, 09:46 PM
  3. Extract data from a vertical and horizontal Data Table as an Average.
    By Koddy in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 02-15-2015, 04:35 PM
  4. [SOLVED] Extract data from a Table
    By RASIKA99 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-11-2014, 07:41 AM
  5. Extract data from a Table
    By RASIKA99 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-28-2014, 01:13 PM
  6. Extract data from a Table
    By RASIKA99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 01:26 PM
  7. Search for Excel file and the sheet within that from the given table data and extract data
    By adrian_slash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2013, 07:55 AM

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