Hi excel wizzards
I have only limitted experience with VBA. I've tried some code i've found online, but I dont fully get what to alter to make it work for my particular example.
I have 1 workbook with 1 sheet that I want to split this into multiple workbooks based on a column.
Example attached.
I would like to create seperate workbooks that contain the data for every unique country (column C). So e.g. a file called NLD.xlsx containing only the data for rows for NLD, a file called FRA.xlsx containing only the data for rows for FRA, etc).
Each file should also have the first 5 rows of general information and the headers.
Anyone that could point me to a thread containing code I could use? I found some, but these are based on a column containing specific values and i dont know which country names may be included in column C.
So I think I need to create a collection containng the unique country values and loop through those by filtering the data, but I'm not sure how.
(I will eventually want to create a seperate xlsm that has a button to push, which will allow to select a source file to load that then will be split, but I think i should be able to find code for that piece).
Apprieciate any help!
Bookmarks