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

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

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

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:

Use the SUBTOTAL function in Excel

You can create subtotals in your spreadsheet using the SUBTOTAL function, which looks like this:

=SUBTOTAL(9,cell:cell)

9 represents the function being used (SUM), followed by the range of cells the function is operating on.

The neat thing about using the Subtotal function is that if you have used it several times in the same column or row, clicking on the AutoSum button at the end of the column or row will make Excel add only the results of cells containing the Subtotal function in that column or row.

View all Excel hints and tips


Server loaded in 0.11 secs.