visual+basic+for+excel+courses+london - spell check
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

resolvedResolved · Low Priority · Version Standard

replyReply Wed 10 Oct 2007, 16:23Delegate Jason said...

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.

For upcoming training course dates see: Pricing & availability

replyReply Wed 17 Oct 2007, 10:05Trainer Carlos said...

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

 


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard