A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Yes, you can't run the code directly. I have trimmed many columns down.
Like I said the original data set has 40+ columns and 10,000 rows.
It makes no sense including them all so I made a sample data set for demonstration.
I was trying to explain the whole process with words from the beginning cuz data set may not make much sense unless you know how they are related.
You can just add the addition code to the original code from what you understand. I will adjust it to my data set.
Using the unique number/numbers. I do a lookup from the wsSource table and save those files to put it simple.
How to keep those range of unique numbers in the memory and process them one at a time with relevant filters and save them.
It is better we execute it by breaking down step by step instead of trying to understand the dataset.
Scenario 1
We need to adjust the code to store a range of unique numbers in the memory instead of one unique number and pull the data from wsSource one at a time and save them with the unique number and description in any cell of column 2 Databodyrange in wsSource as file name.
Scenario 2
is tricky this has to be a separate macro we shall get back to it once we complete Scenario 1.