Macro to show message on invalid format by checking if filled for dynamic range

coolguyvarun01

New Member
Joined
Jan 5, 2015
Messages
27
Office Version
  1. 2019
Platform
  1. Windows
Hi Experts,


I was given a task wherein I have to write a macro on email to check if the format is anything@anything.anything
for a complete column when value is entered in that cell ,blanks are allowed. now data can be in rows 1,2,3,7,9....
Kindly help.

[TABLE="width: 212"]
<tbody>[TR]
[TD]Operation[/TD]
[TD]name[/TD]
[TD]email[/TD]
[/TR]
[TR]
[TD]Create[/TD]
[TD]ABC[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]Create[/TD]
[TD]BCD[/TD]
[TD]ab@c.com[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]change[/TD]
[TD]sfdsf[/TD]
[TD]abc@y.com[/TD]
[/TR]
</tbody>[/TABLE]


p.s.: already data validation is there to check if user is entering value before choosing the operation
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,223,992
Messages
6,175,822
Members
452,672
Latest member
missbanana

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