We help IT Professionals succeed at work.
Get Started

change to macro coding to send multiple lines

mikes6058
mikes6058 asked
on
128 Views
Last Modified: 2015-04-15
HI

Attached is a spreadsheet with a number of rows containing basic trading terms for a number of companies (made up). Column T contains an email address.

The button on the sheet has a macro assigned to it which is designed to split the top row of headings and each individual separate row and then send those two rows to the relevant email address in column T in a separate excel worksheet.

However I would like to alter the macro so that if the same email address appears in multiple rows then each of these rows is collated together along with the top row of column headings into one spreadsheet and then sent as one email attachment to that email address.

Based on the example (example sheet) attached I would expect a workbook containing the following to be sent to robmarr789@gmail.com (1 email to be sent only)

      



Would anyone be able to alter the coding in the macro to this?

Thanks Rob
Copy-of-DIRECT-Central-Terms-encrypted.x
Comment
Watch Question
Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE