In my VBA code the goal is to subtract from cell d1 the amount in cell b5 and display it in b6. The function should be called when the button in cell a5 is pressed on. What my code does right is not working. I dont have a lot of experience in VBA code so I do not know what I am doing. I have attached a photo.
Sub UserForm_Subtract()
Worksheets(1).Range("B6").Value = "D1"-"B5"
End Sub