I have a product template in Excel, which I have reduced for this question. My business unit uses it to onboard products in a database. I would like some help in creating a vba function that I can assign a button to trigger. This is a screenshot of the template:
Basically, I want the VBA code to assign the Pkg_CD to the product based on the following conditions, which are rows filled by users:
I am not versed in VBA and have no idea where to start or what would be the best way in doing this... so thx in advance if help is provided, or if I'm pointed to another post where something similar already was asked and answered.
Basically, I want the VBA code to assign the Pkg_CD to the product based on the following conditions, which are rows filled by users:
Code:
A - Has Haz_ID AND Weight is < 66
B - Has Haz_ID AND Weight is > 66 OR
any of the Length, Width, Height is > 108 OR
Weight is > 150
C - No Haz_ID and <150
If there is not enough information then blank Pkg_CD
I am not versed in VBA and have no idea where to start or what would be the best way in doing this... so thx in advance if help is provided, or if I'm pointed to another post where something similar already was asked and answered.