Macro For Common Filtered Data

b0whel01

New Member
Joined
May 4, 2012
Messages
22
All-

My goal is to get code that will send common filtered data to its own tab within the same workbook while keeping the formatting the same in all tabs:

The common data within the column to have its own tab is all the items in column "G"
The title row is A1:T1 and is to be formatted the same
I would also like to name each tab by the common data with column "G"
The name of the main spreadsheet is called "Dates"


I believe I added all the info needed to create the macro.
Any help is greatly appreciated.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
So you are going to filter the data manually.

Then you want a script to copy all the rows of filtered data to it's own Tab
And the tab name is in column G
And this tab has already been created.

And your master sheet is named Dates

Just for future reference.

Excel uses the following terms:

Workbook
and
Worksheet

The term Spreadsheet was used in the early 1980's

And Spreadsheet referred to what is now known as a Workbook


 
Last edited:
Upvote 0
Have you considered using the advanced filter functionality? (Data tab, Advanced in the Sort & Filter section) You can filter data to different sheets based on unique criteria then automate it with a macro. The key is that the column labels on your filter sheets have to be identical to the column labels on your master data sheet. You don't have to include all the columns if you want. Also, formatting from the original sheet will come with the data (including outlines) using this functionality.
 
Upvote 0
So you are going to filter the data manually
Macro would be preferred over manual.


Then you want a script to copy all the rows of filtered data to it's own Tab
yes all common filtered data to go to their own tab.

And the tab name is in column G
No, the tab would be named after the common data within row G.

And this tab has already been created
Not yet

And your master sheet is named Dates
yes
Just for future reference.

Excel uses the following terms:

Workbook
and
Worksheet

The term Spreadsheet was used in the early 1980's

And Spreadsheet referred to what is now known as a Workbook
understand thanks
 
Upvote 0
Well if you want the script to filter the data then:
We would need to know how to filter the data.

Or do you mean to just copy the entire row to the proper sheet

And you said:

No, the tab would be named after the common data within row G.

We have no Row G

Excel has rows like row 1 and row 2 and row 3

Excel has columns like Column A and Column B and Column C

And do you plan to create the sheets manually or do you want the script to create the new sheets.

It would be easier if you created the sheets manually.

 
Upvote 0
What sort of values do you have in col G?
 
Upvote 0

Forum statistics

Threads
1,213,504
Messages
6,114,016
Members
448,543
Latest member
MartinLarkin

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