I am new to VBA and am not sure how to write this correct macro.
I want to add the sum of an existing value (the active cell) with the amount I want to enter through a input box. What I have so far is:
Sub AddValue()
Dim myRebuy As Variant
ActiveCell.Value = ActiveCell.Value + myRebuy = InputBox("Rebuy Amount?")
End Sub
I know this is wrong though and not sure what needs to be changed and or added.
ANY HELP IS APPRECIATED!
I want to add the sum of an existing value (the active cell) with the amount I want to enter through a input box. What I have so far is:
Sub AddValue()
Dim myRebuy As Variant
ActiveCell.Value = ActiveCell.Value + myRebuy = InputBox("Rebuy Amount?")
End Sub
I know this is wrong though and not sure what needs to be changed and or added.
ANY HELP IS APPRECIATED!