Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: VBA For Outlook SpellChecker


17 Dec 2010   #1

Windows 7 Home Premium x64
 
 
VBA For Outlook SpellChecker

I have the following macro that assigns a category, and saves the e-mail to my "Follow-Up" folder when it is sent. I would like to force a spell check before the e-mail is sent. Can someone tell me the VBA code to add to the macro to do this. Thanks.

VBA:
Sub RailroadCategory()
Set objMail = Application.ActiveInspector.CurrentItem
Dim myNamespace As NameSpace
Dim objFolder As MAPIFolder
objMail.Categories = "Railroad"
objMail.Save
Set myNamespace = Application.GetNamespace("MAPI")
Set objFolder = myNamespace.GetDefaultFolder(olFolderInbox).Parent.Folders("FollowUp")
Set objMail.SaveSentMessageFolder = objFolder
Set myNamespace = Nothing
Set objFolder = Nothing
objMail.Send
End Sub



My System SpecsSystem Spec
.

Reply

 VBA For Outlook SpellChecker




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:09 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33