行の1つ( Range("H5").value = 10 )が特定のセルに特定の値を割り当てるコードを書いています 。しかし、それは私に #VALUE を与えます! 私の携帯のエラー。これが私のコードです助けてください!!:
Function TotalAdUnits(Money As Currency, CycleEarning As Integer) As Integer
TapCost = 16
TotalAdUnits = 0
AdUnit = 0
i = 1
Money = Money + CycleEarning
Do While (Money >= TapCost)
Money = Money - TapCost
TotalAdUnits = TotalAdUnits + Range("L1").Offset(i, 0)
TapCost = Range("J2").Offset(i, 0)
Range("H5").value = 10
i = i + 1
Loop
End Function