Identifying Listboxes

dmqueen

Board Regular
Joined
Aug 5, 2014
Messages
53
Good Morning,

I am trying to copy the selected item from listboxes on 57 sheets in a workbook. Many of them are repeated, but are in different places on the worksheets. What's the easiest way?

In psueocode I'v got:

If ListboxMachines Then
Application.NewRowNum & MachineColumn.Select.Value = ListboxMachines.BoundItem
Else If ListBox PressMachines Then
Application.NewRowNum & PressMachinesColumn.Value = ListBoxPressMachines.BoundItem
End If

If ListBoxGrooveFinish Then
Application.(NewRowNum & GrooveFinishColumn).Select.Value = ListBoxGrooveFinish.BoundItem
End If

If ListboxRotation Then
Application.(NewRowNum & RotationColumn).Select.Value = ListBoxRotation.BoundItem
End If

If ListboxStackableThen
Application.(NewRowNum & StackableColumn).Select.Value = ListBoxStackableBoundItem
End If
If ListBoxMatchedReach Then
Application.(NewRowNum & MatchedReachColumn).Select.Value = ListBoxMatchedReach.BoundItem
End If

If ListboxDesignSoftware Then
Application.(NewRowNum & DesignSoftwareColumn).Select.Value = ListBoxDesignSoftware.BoundItem
End If

But of course this won't work in the slightest, I only explains what I want to do. The columns are unknown and different on every sheet going in. Suggestions?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,216,179
Messages
6,129,332
Members
449,502
Latest member
TSH8125

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