I have 2 workbooks.
1 is "Raw Data" and another one "Mail Info"
I'm looking for a VB code with the below requirements:
1. In "Mail Info" workbook, columns A (A2: A20) has a list of names and Cell "C7" has drop down list with reference to "A2:A20"
2. If Cell “C7” says value as “Chandoo”, then data in “Raw Data” workbook should filter by “Chandoo” (can be found in column name “Email”) and create a new folder called “Chandoo” and save the file as “Chandoo + current date + current time).xlsx in a specific path. (“C:\\Desktop\Files\Chandoo\Chandoo_8/18/2020_2:23 PM.xlsx). If folder already exists only the excel workbook should get saved
3. If Cell “C7” says “ALL”, then data in “Raw Data” workbook should filter by all the names given in column A (A2:A20). The above step should be repeated for each unique name.
***The below point is not mandate, would be helpful if can be done.***
4. If column A (A2:A20) has names like ‘Chandoo’, ‘Mahesh’, ‘John’ etc., however “Raw data” has unique names like ‘Chandoo’, ‘Mahesh’, ‘John’, ‘Bob’, which is missing in the list, then folder and file creation should be done for ‘Bob’ as well and the name to be added to column A (A2:A20)
Note: Here, I’m trying to split the raw data file into each individual files and save in the respective folders.
1 is "Raw Data" and another one "Mail Info"
I'm looking for a VB code with the below requirements:
1. In "Mail Info" workbook, columns A (A2: A20) has a list of names and Cell "C7" has drop down list with reference to "A2:A20"
2. If Cell “C7” says value as “Chandoo”, then data in “Raw Data” workbook should filter by “Chandoo” (can be found in column name “Email”) and create a new folder called “Chandoo” and save the file as “Chandoo + current date + current time).xlsx in a specific path. (“C:\\Desktop\Files\Chandoo\Chandoo_8/18/2020_2:23 PM.xlsx). If folder already exists only the excel workbook should get saved
3. If Cell “C7” says “ALL”, then data in “Raw Data” workbook should filter by all the names given in column A (A2:A20). The above step should be repeated for each unique name.
***The below point is not mandate, would be helpful if can be done.***
4. If column A (A2:A20) has names like ‘Chandoo’, ‘Mahesh’, ‘John’ etc., however “Raw data” has unique names like ‘Chandoo’, ‘Mahesh’, ‘John’, ‘Bob’, which is missing in the list, then folder and file creation should be done for ‘Bob’ as well and the name to be added to column A (A2:A20)
Note: Here, I’m trying to split the raw data file into each individual files and save in the respective folders.