-1
我想在word中檢查整個頁面的這個條件。如何把我的代碼放在do while循環中?
If Options.CheckGrammarWithSpelling = True Then
Selection.Comments.Add Range:=Selection.Range
Selection.TypeText Text:="WRONG!!!"
'ActiveDocument.CheckGrammar
Else
'ActiveDocument.CheckSpelling
'Selection.Comments.Add Range:=Selection.Range
End If
錯誤的代碼格式,我看不到'do while'構造。你應該告訴更多,並提供更多的代碼,並*格式*正確。你的問題不清楚。 – 2012-07-26 05:45:51
可以在這段代碼中加入do ... – user1553562 2012-07-26 05:58:07
你試過了什麼?你知道VBA中'do while'循環的語法嗎?閱讀更多關於他們!你的程序試圖做什麼? – 2012-07-26 06:01:35