Advanced Listbox

woollyg

New Member
Joined
Feb 26, 2018
Messages
4
Hi All,

I have a list box where the row source comes from a name manager range, I would like to delete a specific cell (All in column "A") and this will clear the row due to the code. However there are a number of rows that are generic that i do not want to be deleted, but if the row selected doesn't meet the criteria, the cell in column A will be deleted.

Thanks for any help
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
in your list, add another field for the ones to be deleted..."DELETE"
load the list 1 at a time rather than all in range....

Code:
Sheets("data").Activate
Range("A2").Select
While ActiveCell.Value <> ""
   if ActiveCell.offset(0,1).Value ="" then
       cboBox.AddItem ActiveCell.Value
    endif


   ActiveCell.Offset(1, 0).Select 'next row
Wend
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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