data validation = (list, decimal, whole number, etc.)
I have a sheet with a column for products (called variant.id, column F), followed by 20 blank attribute columns (H:AA), followed by their corresponding allowed values columns (AG:AZ), with the attribute name as column headers for both. The allowed values are either a vertical list or a single cell word like 'integer', 'inches', 'ounces', etc. I would like to use VBA to apply data validation list to the attribute columns for which the corresponding allowed values are a list, and data validation decimal (0 to 1000) to the attribute columns whose corresponding allowed values are 'inches', 'ounces', 'pounds', etc. (with input message 'Enter a number in inches, ounces, etc.'), and data validation whole number (0 to 100) to columns with allowed values 'integer' (with input message 'Enter a whole number').
In the VBA I would like to apply the data validation for the attribute columns stretching down to 50K rows and then clear cell contents for cells which return '#N/A' for a vlookup with a concatenation of variant.id column with column header against a pre-made column (column AD) of that combo in between the attribute columns and allowed values columns.
I realize this is a complicated request and I appreciate any assistance you can offer.
I have a sheet with a column for products (called variant.id, column F), followed by 20 blank attribute columns (H:AA), followed by their corresponding allowed values columns (AG:AZ), with the attribute name as column headers for both. The allowed values are either a vertical list or a single cell word like 'integer', 'inches', 'ounces', etc. I would like to use VBA to apply data validation list to the attribute columns for which the corresponding allowed values are a list, and data validation decimal (0 to 1000) to the attribute columns whose corresponding allowed values are 'inches', 'ounces', 'pounds', etc. (with input message 'Enter a number in inches, ounces, etc.'), and data validation whole number (0 to 100) to columns with allowed values 'integer' (with input message 'Enter a whole number').
In the VBA I would like to apply the data validation for the attribute columns stretching down to 50K rows and then clear cell contents for cells which return '#N/A' for a vlookup with a concatenation of variant.id column with column header against a pre-made column (column AD) of that combo in between the attribute columns and allowed values columns.
I realize this is a complicated request and I appreciate any assistance you can offer.