I'm a newbie to the forum and pretty weak with VBA. I've already found lots of great examples here which have been very helpful. I've been working on this current problem for too long now so I'm hoping someone will help me out.
I am creating a report/form that pulls various bits of data from an external Excel file based on one input value. One of the sheets (LatestBOM) in the external data file has values in the first column that can repeat several times. I want to copy each row that starts with a value matching the one typed into the form. Hopefully the attached files explain it better.
My strategy... Rather than loop through every row I tried to use the Match function to find the first row that the value shows up. Then my plan was to copy that row's data and use a Where Loop to look at the next row to see if the value still matched, then copy that row and so on. I can't seem to get it to work and my code is too messy to post. Any help is appreciated.
SampleData.xlsm
SampleForm.xlsm
- Ian
Bookmarks