Looping question

zach454

New Member
Joined
Apr 25, 2011
Messages
28
I'm new to VBA for excel and have a question I can't quite figure out. What I'm trying to do is automatically have excel bring in the lottery numbers for that drawing and input them into labels and I also have my own numbers that I picked in labels in which I can change. What I want to do is compare them and have the matching numbers show below in another set of labels. I believe I could do it with If Then statements, but my code would be huge, it would need to check each of my numbers against the drawn numbers, and to me, there sounds like there is a better way. Maybe using a a dynamic array with looping? I'm just not sure how to accomplish that.

Any advice would be greatly apperciated! Thanks.

-Zach
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top