我在VBA下面的宏,我想獲得它的工作,但我得到一個錯誤:「編譯錯誤:所需的對象」簡單的VBA環路與求解
Sub Macro6()
' Macro6 Macro
Dim counts As Integer
Set counts = 27
Do While counts < 28
SolverOK SetCell:=Sheets("Slag Case_forcedConvection").Cells(counts, 66), MaxMinVal:=3, ValueOf:=1, ByChange:=Sheets("Slag Case_forcedConvection").Cells(counts, 32)
SolverSolve userfinish:=True
counts = counts + 1
End Sub
'設置計數= 27'刪除'設置' – findwindow
當您遇到錯誤時,請務必告訴我們錯誤指示了哪條線 – Rodger