Lỗi could not be found check the spelling năm 2024

'cleaning_data.xlsx' could not be found. Check the spelling of the file name, and verify that the file location is correct.

Comments

where you put cleaning_data.xlsx? have you tried with full path as strFilename?


1 solution

Solution 1

Make sure the path in strFilename matches exactly the path for the file you want in Windows Explorer, you can see this by debugging your application and setting a break point on :

Confirm that spell check is really running, then check the dictionary and language options in Word's settings

Microsoft Word's spell check is incredibly handy, so it's frustrating when it stops working. The good news is this is entirely a software-based issue, and one we're confident you can fix on your own. Below are troubleshooting steps that apply to Word 2010 and newer.

Causes of Word's Spell Check Not Working

There are several reasons Word's spelling and grammar-checking tool can stop working. You might have changed a simple setting, or the language settings may be off. Exceptions may have been placed on the document or the spell-check tool, or the Word template may have an issue.

The spell checker might return an error message about the default language or say "Spelling and grammar check is complete" without flagging any errors. More often than not, though, you won't see a message; the tool simply won't work as you'd expect.

How to Add Grammarly to Word

How to Fix Word's Spell Checker Not Working

Whatever the reason for spell check not working, follow these troubleshooting steps in the order we've listed them to try the easier solutions first:

  1. Make sure spell check is turned on. This is the most likely culprit and most straightforward solution. If you haven't enabled automatic spell-checking, the tool won't function as you expect.
  2. Review the dictionary settings. There's an option in Word's settings that, if enabled, might cause it to stop underlining mistakes. Go to File > Options > Proofing and look for Suggest from main dictionary only. If it's turned on, click it to remove the tick from the box, and then see if spell check works.
  3. Check Word's proofing language. It might miss errors if it's set to the wrong proofing language.
  4. Check for proofing exceptions. Hidden away in Word's settings is an option to turn off checks for spelling and grammar errors for the document you're working with. If these options are enabled, mistakes will be hidden and it will appear as though spell check is broken. To see if this is why spell check doesn't work, go to File > Options > Proofing, and review the settings under Exceptions for.
  5. Open Word in Safe Mode. An add-in can interfere with the spelling and grammar-checking tool, causing it to work sporadically or not at all. Add-ins are disabled in Safe Mode, so if Word checks for spelling mistakes in Safe Mode but not in normal mode, then one of your add-ins is to blame. Disable the add-ins one by one to verify, checking spell check after each one to isolate the problematic add-in.
  6. Rename the default template. There might be something wrong with Word's global template, called normal.dotm. Renaming the template could fix the problem. Word will generate a new default document without any customizations. When you rename the normal.dotm template, you lose the default settings you established, including styles, toolbars, AutoText entries, and macros.
  7. Repair Word. If all your efforts haven't resolved the spell-check problem, use the built-in repair utility to fix Word. This tool is only available for Windows versions of Office.
  8. Reinstall Word. Microsoft Word is part of a bigger suite, so you'll need to reinstall the whole set of Office programs. A full reinstallation (followed by a reboot) is a big step but it should fix any lingering issues after you've tried all of the above. This will not delete your Word documents.

FAQ

  • If Grammarly in Word isn't working, you may be working in a password-protected document, you may have opened the document in Protected View, or the document is stored on a network. To solve the problem, save your document to a local drive and open it from there.
  • To turn off spell check in Word on a PC, go to File > Options > Proofing. Uncheck the box next to Check spelling as you type. On a Mac, go to Tools > Spelling & Grammar and select Hide Spelling Errors.

To reset Word's spell check on a PC, go to the Tools menu and select Spelling & Grammar > Options. In the Proofing Tools section, select Recheck Document. On a Mac, go to Tools > Spelling & Grammar and select Reset Ignored Words and Grammar.