Hi guys.
I've got a spreadsheet that pulls data from other sheets in the workbook depending on the values selected in 2 drop-down lists (using Data Validation -> List). One drop-down is location, and the second selects various attributes that apply to each location.
I need to be able to cycle through each location, and each set of attributes at each location - I have 8 locations and 4 attributes per location, so 32 combinations. I just don't know how to set the values of the validated lists.
Obviously I could do it by manually typing each location and attribute in the VBA code and just having the code input the text directly, but I'm wondering if there's a way to set the cell value by defining an index number - index 1 is the first entry in the list, index 2 is the second et al.
I want to try to automate this as the lists might get a lot bigger in time, and at each stage I also need to do a goal seek to solve something, and doing it by hand will be a pain.
Any ideas?
Cheers!
I've got a spreadsheet that pulls data from other sheets in the workbook depending on the values selected in 2 drop-down lists (using Data Validation -> List). One drop-down is location, and the second selects various attributes that apply to each location.
I need to be able to cycle through each location, and each set of attributes at each location - I have 8 locations and 4 attributes per location, so 32 combinations. I just don't know how to set the values of the validated lists.
Obviously I could do it by manually typing each location and attribute in the VBA code and just having the code input the text directly, but I'm wondering if there's a way to set the cell value by defining an index number - index 1 is the first entry in the list, index 2 is the second et al.
I want to try to automate this as the lists might get a lot bigger in time, and at each stage I also need to do a goal seek to solve something, and doing it by hand will be a pain.
Any ideas?
Cheers!