Need help writing Simple Search & Delete Macro

evxret

New Member
Joined
Apr 8, 2022
Messages
38
Office Version
  1. 365
Platform
  1. Windows
1655920865131.png

For some reason, for the life of me, I cannot find any relevant information online to what Im trying to accomplish here.
Essentially, all im trying to do is create a macro that takes the value in E2 (which will be a dropdown list), searches it in the table pictured left, finds that name & deletes it ALONG WITH the cell next to it and shifts rows up.

To create a background to this situation, employees editing this table continuously remove names and simply leave the cell blank, therefore the list is spaced out and it drives me nuts. Im simply going to lock them from editing cells on the table and create a delete name button so they have no choice but to delete & shift cells up.

Help is VERY MUCH appreciated. Thank you to this community!!
 
You could also use F8 to step through the code and find which line is triggering an error.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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