Perhaps I am not clear in my question....Okay, I am making a schedule on a calendar I created. I have a total of 325 hours in which to complete a project. Each part of the project will take "x" amount of hours each day. The numbers of hours will vary each day. Therefore, for each day I will type in the number of hours. So for May 30, I will have 5 hours to work that day. On May 31 I have 2 hours to spend on the project. Each time I type in the number of hours on a given day, I would like it to subtract from the total number of 325 hours. I hope this helps clarify what I am attempting to accomplish.
Thank you all for your help. This is an excellent resource!
Maybe like this: right click the sheet tab, select View Code and paste in
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row > 1 Then
Application.EnableEvents = False
Range("A1").Value = Range("A1").Value - Target.Value
Application.EnableEvents = True
End If
End Sub
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.