Loop 沒有 DoLoop without Do

Do迴圈必須以Do語句開頭。A Do loop must begin with a Do statement. 此錯誤的原因及解決方案如下:This error has the following cause and solution:

  • 您已將未終止的迴圈區塊嵌套在另一個迴圈內。You have an unterminated loop block nested within another loop. 檢查是否正確無誤 .。。使用迴圈語法。Check to verify that the correct Do...Loop syntax is used.

如需詳細資訊,請選取有疑問的項目並按 F1 (在 Windows 中) 或 HELP (在 Macintosh 上)。For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.