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.
Bookmarks