Vba code to loop through a column and return values to label controls

Ben888

New Member
Joined
Sep 2, 2013
Messages
12
I have a column (1,11) to (5,11) where sometimes there is a value of either a number or text (eg. 5, 20, 100, 500, Misc Vol). Sometimes there is only a single value within the column on one of the rows. Often there is multiple (upto 3 values). I'm after vba code that will loop through and ignore the empty cells within the column and once it finds a value, show the value in 'label1' control. Subsequently if it finds an additional value in the column, show that value in 'label2' control. Then repeat if necessary and show that value 'label3' control (if there are three seperate values in the column range). Thankyou for considering the above and any assistance given.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,216,582
Messages
6,131,548
Members
449,654
Latest member
andz

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