CRVerdusco
New Member
- Joined
- Nov 22, 2013
- Messages
- 6
I have a sheet that is a master billing for 4 properties. The sumif is used to create a subtotal for each column with a row for each property. in column B user puts in a property code that is the constant in a sumif. Is there a way to do this with out sumif. The issue I am having is that it doesn't update properly. I can calculate it and everything works but when you open the workbook it shows incorrect values.
Code:
'Calculates Totals for Westport Conference Center
Public Function TotalWCC(Subtotal As Range)
TotalWCC = WorksheetFunction.SumIf(Range("B4:B80"), WPConf, Subtotal)
End Function
'Calculates Totals for Westport Plaza
Public Function TotalWP(Subtotal As Range)
TotalWP = WorksheetFunction.SumIf(Range("B4:B80"), WPPlaza, Subtotal)
End Function
'Calculates Totals for Westport Sheraton Chalet
Public Function TotalCH(Subtotal As Range)
TotalCH = WorksheetFunction.SumIf(Range("B4:B80"), WPChalet, Subtotal)
End Function
'Calculates Totals for DoubleTree Westport
Public Function TotalDTW(Subtotal As Range)
TotalDTW = WorksheetFunction.SumIf(Range("B4:B80"), WPDblTree, Subtotal)
End Function