Excel VBA row delete if cell contaion specific value from sheet2

zsolti900

New Member
Joined
Feb 23, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
Hello All,

I would like do something like, what can remove the row, if 1 cell contaion the value from sheet2. For example:
Sheet1:
A A A
1 a 1 1
2 b 2 2
3 c 3 3
4 d 4 4

Sheet2:

A
1 specific value:
2 2
3 4

And when i run the VBA this just gonna remove the 2. and 4. row and i will get something like this:
A A A
1 a 1 1
2 c 3 3


I would like work with table, so thats why the filter not good idea. Thank you very much!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I don't understand how the data is in the cells.
You could put an image or better yet an example of your data with the XL2BB tool.
 
Upvote 0

Forum statistics

Threads
1,214,853
Messages
6,121,935
Members
449,056
Latest member
denissimo

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