My goal is to have an Excel Macro.
In Excel, I want to iterate through two drop down lists to run all possible combinations using VBA.
The problem is that the drop down lists must be manually iterated through.
The second drop down list is dependent on the first drop down list.
The first drop down list is 3 types of vehicles: Ford, Toyota, and Mazda.
The second drop down list is the repair site: Ford Dealership, Toyota Dealership, Mazda Dealership, General Repair Shop A, and General Repair Shop B.
The second list dependency is that the Ford Dealership can only repair Fords; the Toyota Dealership can only repair Toyotas. The Mazda Dealership can only repair Mazdas. General Repair Shop A and General Repair Shop B can repair any type of vehicle.
The actual problem has a much larger data set and I must use Excel to solve the problem.
I tried using two four loops. But there are many combinations that I don't want to occur.
sub test()
Dim i as Integer
Dim j as Integer
For i =1 to 3
Next i
For j=1 to 5
Next j
End Sub()