Hello Everyone,
I am trying to generate an All-in-One sheet which will auto-populate templates as sheets based on the product type chosen.
Currently, we share a single Google Drive folder containing 450 templates, and they chose which to download and enter values. Each of those excel files have 1 template based on product type, and master_list. Data-Validation is added to each cell in the template.
Different product types will have different attributes (some of them mandatory, some of them optional). I have the reference sheet showing which attributes are mandatory, which are non-mandatory and which don't apply to the product type at all. There are close to 400 attributes in total across 500+ product types. Some attributes are free-text and some only accept certain values (listed in Master_List" sheet).
So I am thinking of making a single Macro enabled workbook where a seller can choose a product type and it will auto-populate a new sheet with the template for the product type. So the newly generated product type template, will have only those attributes as columns which are either mandatory and non-mandatory. 2nd row will mention which attributes are mandatory and which are non-mandatory. 3rd row will have a drop-down for all attributes which accept limited inputs. It will be a Table.
Here's a sample Sheet.
I am a beginner in VBA. As of now, I have an idea of a long winded way of doing it because I think all the steps that I need for this, I can find some vba online and maybe combine it all.
I have the reference sheet called "Templates_Guide"
In the select sheet, client will chose product_type.
Here's my long-winded version.
But I was hoping, maybe someone can do it or guide me more efficiently.
These will be shared with our clients whose expertise on excel is unknown. So it would be better if they don't have to do anything complicated to enable macros or run them. All of this should be very user-friendly.
Thanks in Advance.
I am trying to generate an All-in-One sheet which will auto-populate templates as sheets based on the product type chosen.
Currently, we share a single Google Drive folder containing 450 templates, and they chose which to download and enter values. Each of those excel files have 1 template based on product type, and master_list. Data-Validation is added to each cell in the template.
Different product types will have different attributes (some of them mandatory, some of them optional). I have the reference sheet showing which attributes are mandatory, which are non-mandatory and which don't apply to the product type at all. There are close to 400 attributes in total across 500+ product types. Some attributes are free-text and some only accept certain values (listed in Master_List" sheet).
So I am thinking of making a single Macro enabled workbook where a seller can choose a product type and it will auto-populate a new sheet with the template for the product type. So the newly generated product type template, will have only those attributes as columns which are either mandatory and non-mandatory. 2nd row will mention which attributes are mandatory and which are non-mandatory. 3rd row will have a drop-down for all attributes which accept limited inputs. It will be a Table.
Here's a sample Sheet.
I am a beginner in VBA. As of now, I have an idea of a long winded way of doing it because I think all the steps that I need for this, I can find some vba online and maybe combine it all.
I have the reference sheet called "Templates_Guide"
In the select sheet, client will chose product_type.
Here's my long-winded version.
- It will create a copy of "templates_guide", rename that sheet to Product_Type chosen.
- Then remove all rows except the 1st row and the row containing the same product type in 1st column.
- Then remove blank columns (which only have the attribute headers but nothing in 2nd row).
- Then convert that into a Table including the 3rd row.
- Add Drop-down validation to the 3rd row wherever the column attribute exists in "Master_List". I have a working Vba for the same already.
- The Table & Data Validation should extend accordingly if they enter anything in subsequent rows or copy paste a list in any attribute column.
- BONUS: If a mandatory field is empty or any entered data is not acceptable (based on Master_List), highlight it. But not at the cost of slowing down the entire excel due to conditional formatting.
- If the client chooses another product, repeat the same so we have a new template in a new sheet.
But I was hoping, maybe someone can do it or guide me more efficiently.
These will be shared with our clients whose expertise on excel is unknown. So it would be better if they don't have to do anything complicated to enable macros or run them. All of this should be very user-friendly.
Thanks in Advance.