VBA Help Delete Row if 3 conditions met?

Status
Not open for further replies.

LNG2013

Active Member
Joined
May 23, 2011
Messages
465
Hello I need help with a bit of VBA code.

I need the code to look at Column AI.
Column AI can have a value of 0-7.
If a Row in Column AI has a value of "0" check column Probed, If it is empty check Notes, if also empty delete that Row.

In the example below row 8 would be deleted as AI = 0, Probed is empty, and so is Notes.


1
Date
Probed
Area
Team
AI
Match
Notes
GI
29/1/2019Team 17
39/5/2019Team 115
49/7/2019NotTeam 30
59/12/2019Team 44
69/15/2019NotTeam 70
79/22/2019Team 93
8
9/30/2019
Team 4
0
910/1/2019Team 22
1010/02/2019Team 60other

<tbody>
</tbody>



Thank you for any and all help!
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Status
Not open for further replies.

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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