hello, i hope someone can help me with this.
i'm trying to calculate two variables provided by the user through the inputbox. i'm having a hard time getting it calculate.
here's what i have. any suggestions would be great, thanks!
Sub ProrateValue()
Dim NetWeight As Integer
Dim TotalValue As Integer
NetWeight = InputBox("Please enter the Net Weight Value")
TotalValue = InputBox("Please enter the Total Value")
Range("E2").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[2]*netweight)/totalvalue"
Range("E2").Select
Selection.AutoFill Destination:=Range("E2:E100")
End Sub
thanks again.
i'm trying to calculate two variables provided by the user through the inputbox. i'm having a hard time getting it calculate.
here's what i have. any suggestions would be great, thanks!
Sub ProrateValue()
Dim NetWeight As Integer
Dim TotalValue As Integer
NetWeight = InputBox("Please enter the Net Weight Value")
TotalValue = InputBox("Please enter the Total Value")
Range("E2").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[2]*netweight)/totalvalue"
Range("E2").Select
Selection.AutoFill Destination:=Range("E2:E100")
End Sub
thanks again.