I want to assign the value of a cell in a specific worksheet to the function, but the function is returning a zero. Below is my simple code:
Function TLGV(Modele As String, Pressure As Integer) 'Total Load Grand Vitesse
If Modele = "DCHC05" Then
If Pressure = 30 Then
Worksheets("VC Types").Activate
TLGV = Range("H4").Value
End If
Else
End If