Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

visual+basic+for+excel+courses+london - spell check

Forum home » Delegate support and help forum » Microsoft Excel Training and help » visual+basic+for+excel+courses+london - Spell check

visual+basic+for+excel+courses+london - Spell check

ResolvedVersion Standard

Jason has attended:
Excel Advanced course

Spell check

Is it possible to create a macro/function that would pop up to remind you to spell check your excel file when closing the file.

RE: Spell check

Jason

Yes you can. But instead of reminding the person to do a spell check you could do it automatically.

To do this:

1. Open the relevant workbook
2. Open the Tools menu, Select Macro / Macros
3. On the Macro dialog box Click Edit
4. The Visual Basic Editor appears


In the Visual Basic Editor

1. Double click ThisWorkbook in the Project section

2. Enter the following code in the code area:

Private Sub Workbook_BeforeClose(Cancel As Boolean)

Cells.CheckSpelling SpellLang:=2057

End Sub


This runs the spellcheck (in English hence the 2057) before the workbook closes.

Hope this helps

Carlos

Excel tip:

Closing all your workbooks Quickly

Hold the SHIFT key down and using the mouse click on the file menu, it will now now CLOSE ALL rather than close. This closes all workbooks down but still leaves the application open.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.