Auto spell check VBA macro in Excel

NithyaAv

New Member
Joined
Apr 26, 2019
Messages
1
Hello MrExcel,

I need to write a macro which will auto spell check as we write in the Excel (Dynamic spell check just like in Word). I know that we have this feature in latest versions of Excel , but we are currently using a older version and hence to customize the feature.
Please do let me know how to implement this macro.

Thanks in advance.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Welcome to the forum!

On the sheet you want to check, Right-Click the sheet name and select View Code and paste one of these (NOT BOTH)

Check everywhere on sheet except for special range:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)

Dim rNoSpell As Range       'range to not check spelling
Set rNoSpell = [A1:A4].EntireRow


If Intersect(Target, rNoSpell) Is Nothing Then
    'change occurs outside protected area
    Target.CheckSpelling
End If
End Sub

Check everywhere on the sheet:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'check everything on this sheet
Target.CheckSpelling
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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