Dim i As Integer, j As Integer, k As Integer, l As Integer
i = ActiveSheet.PivotTables(1).TableRange2.Rows.Count + 1
j = ActiveSheet.PivotTables(1).TableRange2.Columns.Count
k = ActiveSheet.PivotT
我正在使用SumIf函數將所有包含字符串dailyTotal的單元格合計到它們的左側。然後我在Macros表單上設置單元格C29爲該值,並將其與數字進行比較以查看接下來執行的代碼。我在E列單元格的值,但價值總是返回爲0 代碼: dailyTotal = "Daily Total:"
Dim totalHours As Double
Dim rng As Range: Set rng = App