VBA Code to remove a cell if certain conditions exist before the @ symbol

dchunt6180

New Member
Joined
Oct 30, 2018
Messages
1
Hey guys! This is my first forum post in Mr Excel so hopefully I do this right. I am also new VBA so my apologies if this is an easy answer.

I am trying to write a macro that deletes a row/cell if there are less than 3 characters before the "@" symbol or if the same letter is used repeatedly before the "@" symbol in a cell.

I have already written a basic macro that fixes errors to domain name misspellings like "gamil.com" and "yaho.com". I am trying to get it to the next level by deleting cells that contain clearly fake email addresses like rrr@gmail.com or no@gmail.com

Any pointers or ideas would be awesome!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,216,113
Messages
6,128,905
Members
449,478
Latest member
Davenil

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