madkinson
Board Regular
- Joined
- Dec 17, 2004
- Messages
- 113
- Office Version
- 365
- Platform
- Windows
We have an idea that should reduce keying errors when a user enters a bill of lading in our ticketing system. I've developed a simple Excel sheet with a list of all available rail cars. The can use a "Select All" button to select all cars then uncheck the ones that aren't being used for this particular train (each train has about 125 cars).
What I can't figure out is how to write code that would automate the process where the user would click an "Add Cars" button and the code would take each line where the box is checked and do a VLOOKUP to fill in the rail car number selected as well as the rest of the values for that car as shown in the second attachment.
Maybe a VLOOKUP isn't the best solution? Any help is greatly appreciated. Thanks.
What I can't figure out is how to write code that would automate the process where the user would click an "Add Cars" button and the code would take each line where the box is checked and do a VLOOKUP to fill in the rail car number selected as well as the rest of the values for that car as shown in the second attachment.
Maybe a VLOOKUP isn't the best solution? Any help is greatly appreciated. Thanks.