moneybydallas
New Member
- Joined
- Feb 28, 2016
- Messages
- 3
I am new to VBA and have been following many different YouTube videos. I have had great success until it came to event changes. In a specific worksheet I have entered the following:
Sub addition()
Cells(3, 1) = Cells(2, 1) + Cells(1, 1)
End Sub
Private Sub commandbutton_click()
Call addition
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Call addition
End Sub
The first two work with no issue, however nothing I try in the last one will work. I am working on a much larger macro for work and I need this function to work. Can anyone help??
Dallas
Sub addition()
Cells(3, 1) = Cells(2, 1) + Cells(1, 1)
End Sub
Private Sub commandbutton_click()
Call addition
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Call addition
End Sub
The first two work with no issue, however nothing I try in the last one will work. I am working on a much larger macro for work and I need this function to work. Can anyone help??
Dallas