Microsoft Word can be either confusing or just wrong on this point. In these cases, the sentence would be syntactically correct without the quotation marks, and you are just using the quotation marks to show that the quote is a direct quote.