VBA to Save and Filter based on Column Value

Andrew.Trevayne

New Member
Joined
Aug 23, 2012
Messages
6
Hi everyone! Hope you are all safe and healthy!

I would like to ask for help on a spreadsheet to improve and reduce some manual process that I do on daily basis.
I have this spreadsheet that has tons of data (sometimes reaches to thousand lines), on column E will have values.
I would like to copy all the row if the value of column is the same and then, I would like to save them in a separate spreadsheet (at C:\Temp).

For example
All the rows that has value "AAAAA" in column E will be saved to C:\Temp as AAAAA.xls (and so on as long as the value in column E is unique).


Heading1Heading2Heading3Heading4MAINHeading5Heading6Heading7Heading 8Heading9Heading10Heading1
Pteuax SextwzruActiveABC1DEF1AAAAAXXXXXX1Name1LastName-AValueValueValueValue
arytexrzpxaa Szxrzv – qerpxe qaqqtuWzru_ypsaqActiveABC2DEF2AAAAAXXXXXX2Name2LastName-AValueValueValueValue
SaqaqqtuwzruActiveABC3DEF3AAAAAXXXXXX3Name3LastName-AValueValueValueValue
zuteazq qrzwavx Purxu Ptux-av / zqq-avActiveABC4DEF4AAAAAXXXXXX4Name4LastName-AValueValueValueValue
Pytxev Sarapt xer vetupzq++ActiveABC5DEF5AAAAAXXXXXX5Name5LastName-AValueValueValueValue
Uvaty qaxActiveABC6DEF6AAAAAXXXXXX6Name6LastName-AValueValueValueValue
zqvzvtzxu/Uvavurszt zvztysas (Uz) SextwzruActiveABC7DEF7AAAAAXXXXXX7Name7LastName-AValueValueValueValue
Prexrzqzqer huruqavActiveABC8DEF8AAAAAXXXXXX8Name8LastName-AValueValueValueValue


Appreciate if you could help me as I'm desperate, there are times that I have to save hundreds of file which is really time consuming.
Thank you very much in advance.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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