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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,226,116
Messages
6,189,054
Members
453,523
Latest member
Don Quixote

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