All,
I am trying to find a more efficient and smart way to load values from a database to my userform when it initializes. I am currently using a For loop. Here is my code below:
How can I make this more efficient? The problem is the user might only have 3 rows of data (ID2, ID3, and ID4) but this for loop goes through all 7 rows of data to see if the If condition is true or not. I am not very good with VBA or programming as you can tell by my code. Please let me know if there are other ways of doing this.![]()
Please Login or Register to view this content.
Thank you for your help.
J
Bookmarks