copy paste range onto new sheet and email to each

BL007

New Member
Joined
Feb 9, 2015
Messages
1
Hi All,

I would like to filter a sheet and paste those records onto a new sheet in the same workbook. I would like to email each sheet to the field selected for that filter.
I am using the Supervisor's name in order to create that filter. Each has from 5 to 10 employees. I want each supervisor to get their own sheet with their subordinates information on it. I want to email that information using Outlook. currently using Excel 2013.
I would like this process to be done automatically using VBA.
The following is part of that code in Excel Macro VBA used to copy paste but it does it for one selection. I want it to be continuous for all listed supervisors in that same column.

Code:
Rows("1:1").Select
    Selection.AutoFilter
    Range("G2").Select
    ActiveSheet.Range("$A$1:$U$57").AutoFilter Field:=7, Criteria1:= _
        "Jones, Mat "
    Range("A1:U30").Select
    Selection.Copy
    Sheets("Sheet1").Select
    Rows("1:1").Select
    ActiveSheet.Paste
    Sheets("Merit Increase Return").Select
    Application.CutCopyMode = False
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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