Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Validate Email address entry

Hi All,

How can I validate data entry into a spreadsheet for a specific cell where
an email address is typed into? One of the common errors my data capturers do
is using a comma instead of a full-stop.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Validate Email address entry



This may come close...
Right-click the sheet tab, select View Code and paste the following
code in the big white window...
'--
Private Sub Worksheet_Change(ByVal Target As Range)
If Target(1, 1).Address = Me.Range("C5").Address Then
If InStr(1, Target(1, 1).Value, ",", vbTextCompare) 0 Then
MsgBox "Don't do that. "
Application.Undo
End If
End If
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Rayasiom"
wrote in message
Hi All,
How can I validate data entry into a spreadsheet for a specific cell where
an email address is typed into? One of the common errors my data capturers do
is using a comma instead of a full-stop.
Thanks
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Validate Email address entry

Hi Jim,
Thanks - it does work.

"Jim Cone" wrote:



This may come close...
Right-click the sheet tab, select View Code and paste the following
code in the big white window...
'--
Private Sub Worksheet_Change(ByVal Target As Range)
If Target(1, 1).Address = Me.Range("C5").Address Then
If InStr(1, Target(1, 1).Value, ",", vbTextCompare) 0 Then
MsgBox "Don't do that. "
Application.Undo
End If
End If
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Rayasiom"
wrote in message
Hi All,
How can I validate data entry into a spreadsheet for a specific cell where
an email address is typed into? One of the common errors my data capturers do
is using a comma instead of a full-stop.
Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
validate duplicate entry in a column wangan Excel Discussion (Misc queries) 4 June 5th 07 01:38 PM
send wkbk as an email attachment with an email address copied from SueInAtl Excel Discussion (Misc queries) 0 May 21st 07 10:53 PM
Validate in WS to prevent dual data entry Jonah Excel Worksheet Functions 1 March 10th 06 05:22 AM
Validate MsgBox Entry to Data in Cells David Excel Discussion (Misc queries) 13 December 21st 05 10:31 PM


All times are GMT +1. The time now is 05:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"