A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

I need help writing a code....



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 27th 07, 10:28 PM posted to microsoft.public.outlook.program_vba
shawn
external usenet poster
 
Posts: 29
Default I need help writing a code....

Hi there, need help writing a code that checks if the e-mail entered in a
filed is proper ) or any possible ending of e-mail
address...

Hope to get help, this is for my project....

Thanks!
  #2  
Old June 28th 07, 07:34 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default I need help writing a code....



Use the InStr function to check if some necessary letters exist. The Len
function tells you the length of a string.

the address
- must have exactly one '@'
- must have a '.' after '@'
- must have two to four characters after that dot

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 27 Jun 2007 13:28:00 -0700 schrieb Shawn:

Hi there, need help writing a code that checks if the e-mail entered in a
filed is proper ) or any possible ending of e-mail
address...

Hope to get help, this is for my project....

Thanks!

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing email addresses to variables using VBA broken_penguin Outlook and VBA 1 June 13th 07 02:52 PM
Writing Extentions James Matthews Outlook - General Queries 1 May 11th 07 01:48 PM
Writing to the status bar Anyone for Coffee? Outlook and VBA 1 March 28th 07 10:48 PM
what is the key to cancel an email that is writing? cfman Outlook - General Queries 3 October 28th 06 08:42 PM
Writing emails in doc format Craig Outlook Express 2 March 20th 06 09:01 AM


All times are GMT +1. The time now is 11:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.