I would like to ask you for some help regarding following issue:
I have two variable (1) outManual : 183.2 and (2) outSystem : 192.5. I also have an array with 8 values. All this being work related, i'll use random values.
My code looks like this:
Sub calcul()
Dim outManual As Integer
Dim outSystem As Integer
Dim vParam As Variant
Dim i As Integer
Dim x As Integer
Dim diff As Integer
outManual = 183.2
outSystem = 192.5
vParam = Array(0, -13.2, -6, 8.9, 12, 25.5, 4, 7.3)
For i = LBound(vParam) To UBound(vParam)
For x = UBound(vParam) To LBound(vParam) Step -1
....
End Sub
Is there any code that i could use in order to found out which of the vParam's values (or combination of values) should be add or substracted to variable outManual in order to obtain the second one?
I'm not sure i've explained the situation very well, but I hope you understand. :)
Thank you very much,
Valentin