Dear Forum,
I have been trying to code a data validation drop-down list. The reason I am using code is that the list is a cascading list that may require free text entry depending on choices selected.
The basic premise of the code:
If user selects "Site" as "Company" then they are presented with a drop-down and a cascading drop down list.
If user selects "Site" as "Third Party" or "Customer" they are presented with a free text field to enter "Location"
There are a few nuances if the user selects US or another country in that "N/A" gets populated into the region field for non-US.
Issues
• I keep getting an error when I select "Company".
• Not sure if “Case” is correct approach or do I use “If else” statements, or can both be mixed?
• Formula1 needs to reference the correct row. I've tried using ThisRow in the formula for the indirect statements but just get errors every time.
Code.jpg
Any guidence would be appreciated.
Thanks
Bookmarks