Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

In VBA how do I store a lookup value in an array, then loop thru the array

Avatar of upobDaPlaya
upobDaPlaya asked on
Microsoft OfficeMicrosoft ExcelVBA
5 Comments1 Solution199 ViewsLast Modified:
Attached I have a 3 tab spreadsheet: Source, Today, and Not Matched
1.In VBA I would like to compare the Today tab with the Source tab based on fields "Amt" "Store" and "Date"
2.If I find a match I would like to store the "ID" value from the source tab for the first match found (note there could be multiple matches)
3.I would then like to re-loop thru the Source tab to find any ID's that are not found in the stored value from above
4.The final step would be I would write out the missing ID's to a tab called "Not Matched"

I am familiar with looping, but I do not know the approach or syntax to create an array for the id and to store the array....
ee-Not-Matched.xlsx