Create and Rename New Worksheets for each unique cell in a column

DavisNRJr

New Member
Joined
Aug 5, 2012
Messages
29
Header1Header2Header3EmailHeader5Header6Header7
1abemail@1cde
2bcemail@2def
3c?email@3???
4d?email@4???
5e?email@5???
6f?email@6???
7g?email@7???

<tbody>
</tbody>

<tbody>
</tbody>

I am trying to write VBA code to loop thru the rows of an excel Worksheet(Source) as above, and use the values of each row of data in worksheet (A) to do some calculations. After that, save worksheet (C) that has results of the calculations with the name of the email "email@1, email@2, email@3 etc."

After this, save new email named worksheet in a separate workbook in a specified Directory.

After the files are produced and placed in the specified Directory, have the files emailed automatically to the email address it has been named.

Thanks for any help. I have seen so many ways to email out files, and I am challenged. Appreciate any help with this task.

Above VBA would produce
Worksheet1 in separate workbook as Worksheet named (email@1)
Worksheet2 in separate workbook as Worksheet named (email@2)
Worksheet3 in separate workbook as Worksheet named (email@3)
Worksheet4 in separate workbook as Worksheet named (email@4)
Worksheet5 in separate workbook as Worksheet named (email@5)
Worksheet6 in separate workbook as Worksheet named (email@6)
Worksheet6 in separate workbook as Worksheet named (email@7)

all saved in the same Directory specified, and then emailed out to the respective email address.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top