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

Macro to check an email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 14th 11, 10:13 AM
Jeskit Jeskit is offline
Junior Member
 
First recorded activity at Outlookbanter: Oct 2011
Posts: 2
Default Macro to check an email

HI,

I have been asked to create a macro in Outlook which checks an email before its sent. This macro will check the address, subject, attachements and Spelling. However Currently when it gets to checking the spelling it just asks if the user has spell checked the body of the text, if the user selects no then it display a mesage saying please select ok to close the macro and spell check the email.

However i was wondering if it is possible to instead of the displaying the second message "please select ok to close the macro and spell check the email" to have a message which said "please select ok to run a spell check on the body of the text". However I can not seem to work out if it is possible to have a VBA macro in Outlook spell check the body of the text.

Does anyone know if it is possible to start a spell check in outlook VBA?

Thanks,

Jeskit
Ads
  #2  
Old October 29th 11, 08:01 AM
Quinton1 Quinton1 is offline
Junior Member
 
First recorded activity at Outlookbanter: Oct 2011
Posts: 4
Default

Quote:
Originally Posted by Jeskit View Post
HI,

I have been asked to create a macro in Outlook which checks an email before its sent. This macro will check the address, subject, attachements and Spelling. However Currently when it gets to checking the spelling it just asks if the user has spell checked the body of the text, if the user selects no then it display a mesage saying please select ok to close the macro and spell check the email.

However i was wondering if it is possible to instead of the displaying the second message "please select ok to close the macro and spell check the email" to have a message which said "please select ok to run a spell check on the body of the text". However I can not seem to work out if it is possible to have a VBA macro in Outlook spell check the body of the text.

Does anyone know if it is possible to start a spell check in outlook VBA?

Thanks,

Jeskit
You'll want to use something like...
Code:
Sub TestifBlankandEmail ()
'A1 : D10 is the range you want to check if blank
If [AND (ISBLANK (A1 : D10))] Then
'This message that pops up if the range is blank
MsgBox "Please complete all data entries."
Else
'If it isn't blank, then send the email as an attachment to recipient, with subject of TPS Report
ActiveWorkbook.SendMail _
Recipients: ="Email Address", _
Subject: ="TPS Report"
End If

End Sub
Hope this helps,
 




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
Check Other User's Calendar Macro Dan Outlook - Calandaring 3 February 26th 10 10:51 AM
Set off VBA macro on email receipt then that macro accesses the emailcontent [email protected] Outlook and VBA 3 February 5th 09 01:14 AM
Outlook 2003 or 2007 autoexec macro to check for disabled items Sue Outlook and VBA 2 December 8th 08 06:50 PM
How to check email without removing the email copy from email serv Eric Outlook Express 2 May 19th 08 10:14 AM
create a Outlook macro which will check for non arrival of mail srisubha Outlook and VBA 3 November 2nd 06 08:04 AM


All times are GMT +1. The time now is 04:27 PM.


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.