I have the following macro in VBA, and I am trying to get it to work, but I get an error: "Compile Error: Object Required"
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
Set counts = 27remove theset