Article ID: 108642
Article Last Modified on 10/10/2006
Sub AddToCell()
'ActiveCell.Value places the value or formula into the active cell
'on the active worksheet.
'
'ActiveCell.Value returns the value in the active cell of the active
'window.
'
'InputBox calls up the Excel input box for you to type in the number
'to be added to the original value. Val takes the text string
'returned from the input box and turns it into a number.
ActiveCell.Value = ActiveCell.Value + _
Val(InputBox("Enter a Number", default:=1))
End Sub
120802 Office: How to Add/Remove a Single Office Program or Component
ActiveCell
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 8.00 XL97 XL7 XL5 XL
Keywords: kbdtacode kbhowto kbprogramming KB108642