Hey!
New to the forum. Just getting in the VBA. Maybe you could help me.
This code is calculating one parameter with changing another for one specific row. I would like to make a condition for example: "IF B19 = "10" then calculate the rest of the code, but I would want that for every row where B is 10.
Any ideas?
Application.ScreenUpdating = True
End Sub
New to the forum. Just getting in the VBA. Maybe you could help me.
This code is calculating one parameter with changing another for one specific row. I would like to make a condition for example: "IF B19 = "10" then calculate the rest of the code, but I would want that for every row where B is 10.
Any ideas?
VBA Code:
Sub GoalSeek()
Application.ScreenUpdating = False
Static isWorking As Boolean
If Range("'Hid. - Proracun'!B19").Value = "Cijev" Then
If Round(Range("'Hid. - Proracun'!Q19").Value, 4) <> 0 And Not isWorking Then
isWorking = True
Range("'Hid. - Proracun'!Q19").Value = 0.01
Range("'Hid. - Proracun'!U19").GoalSeek goal:=0, changingcell:=Range("'Hid. - Proracun'!Q19")
isWorking = False
End If
End If
Application.ScreenUpdating = True
End Sub