Sending an Email with Excel File Using VB/ And help with Looping

cnugent

New Member
Joined
Jan 10, 2011
Messages
14
I have a file that I need to send to a group of individuals, however each person only sees certain parts of the file. I need help with two parts of this macro.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I created macros that will hide the sheets that aren't needed for the individuals so that when it is finished the only thing visible is what pertains to that individual. The one part of the macro I am missing is how to email it to this individual when the tweaking part of the macro is done. The email is based on a temporary tab containing their emails and based on how I set up the tweaking of the files it will always be in H2.<o:p></o:p>
<o:p></o:p>
The second part I am missing is a statement that says when the email is sent delete that person from the temp list and go back to the top of the script and do all the filters over again with the second person on the list. I know this is a loop, but I am unfamiliar with loops and heard they can be dangerous t create so I thought I'd ask. When the temporary tab of emails is empty (except for the header on top) I want the loop to stop.<o:p></o:p>
<o:p></o:p>
I'm sure to you experts this should be a breeze, but I don't know where to begin.<o:p></o:p>
<o:p></o:p>
Thanks in Advance for your help<o:p></o:p>
<o:p> </o:p>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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