Folks
I am relatively new to Excel (used it for years as a basic user) and this ismy first posting to any site (sorry if I break some rules)
I am trying to come up with appropriate code to do the following
I have a table which lists towns and routes between them
I want to come up with appropriate code to allow the user to select manually a given route between up to 10 towns
The way I see it working is as follows:
The sheet will have a table with headings Starting Town, Route Number, End town
There will be option to select up to 10 start and end points
• The user will select the first town (from a pick list)
• The user will then use a second pick list to select a given route out of that town. i.e i will need to create dynamically a list of all the routes leaving that town
• Once the user select the route the name of the related End Town will be automatically populated to the End Town cell and to the Start Town cell on the next line and the all process starts again until the last route is selected and the final end town is reached
Clear as mud?
E.g Assuming I have this town/route combination in a separate sheet
From Town To Town Route #
A B 1A
A B 1B
A C 2
A D 3
B E 4
B D 5
B F 6
C D 7
C G 8
If the user type Town A as the start town and move to the route field. the field validation at this instance will limit the options to routes 1A,1B, 2 & 3
If he then select route 2 the End Town will be set to C and at the same time the Start Town on the next line will also be set to C
Once he go to select the next route he will be given the option to pick route 7 & 8 and so it goes till he gets to last town
Can anybody tell me how to do that?
Thanks for your help
Don
I am relatively new to Excel (used it for years as a basic user) and this ismy first posting to any site (sorry if I break some rules)
I am trying to come up with appropriate code to do the following
I have a table which lists towns and routes between them
I want to come up with appropriate code to allow the user to select manually a given route between up to 10 towns
The way I see it working is as follows:
The sheet will have a table with headings Starting Town, Route Number, End town
There will be option to select up to 10 start and end points
• The user will select the first town (from a pick list)
• The user will then use a second pick list to select a given route out of that town. i.e i will need to create dynamically a list of all the routes leaving that town
• Once the user select the route the name of the related End Town will be automatically populated to the End Town cell and to the Start Town cell on the next line and the all process starts again until the last route is selected and the final end town is reached
Clear as mud?
E.g Assuming I have this town/route combination in a separate sheet
From Town To Town Route #
A B 1A
A B 1B
A C 2
A D 3
B E 4
B D 5
B F 6
C D 7
C G 8
If the user type Town A as the start town and move to the route field. the field validation at this instance will limit the options to routes 1A,1B, 2 & 3
If he then select route 2 the End Town will be set to C and at the same time the Start Town on the next line will also be set to C
Once he go to select the next route he will be given the option to pick route 7 & 8 and so it goes till he gets to last town
Can anybody tell me how to do that?
Thanks for your help
Don