OK, so, where to start... I think this sheet is what you are after:
Example.xlsm
All of the tricky stuff is done in code in the background. You can view the code by right clicking on the Sheet tab and clicking "View Code". That takes you to a VBA window with VBA code in it. I wrote that code for what you are trying to do. This code activates whenever a value in the sheet changes - this is called "Event driven" - when an event occurs some code runs. You will notice that the code is surrounded by "Worksheet_Change" which is the event that we are coding for. When the Worksheet Changes, we run the code. This is called "wiring an event" - we have wired code to run for an event. Lost yet?
The code does the following:
If the cell changed is the entry cell
loop through all the rows in the source sheet
If you find the corresponding value in the Cust# column
Copy the values from the source sheet
Paste the values in the destination sheet
What we are doing here though is something that MS Access can do pretty much automatically. And this is why I say you should be using MS Access if you have lots of these screens - its designed for doing EXACTLY what you want - you wouldn't have to write any code in MS Access to do this.
What may actually be more useful if you want something simpler is simply using a filter on the column you are after, as in the attached file:
Example 2.xlsx
Use the drop down filter on the Customer ID column and select the Customer number you want. Simple right?
Again though I would plead that you think about your situation before continuing. If you are going from MS Access to MS Excel, that is highly unusual and is very rarely done. So what's your reason for it? If it is only because you can't maintain the MS Access DB through lack of skills, you are going to have a much greater problem (by a factor of 10 probably) trying to maintain a set of MS Excel sheets than a MS Access DB. In such cases it is much better long term to do a course on MS Access, learn the skills required and use these to maintain/enhance the MS Access database. Trust me, I have seen this literally dozens of times, you will end up in a complete mess and a world of pain if you convert from MS Access to Excel simply because of a lack of MS Access skills.
Bookmarks