M
Mark J
I have the following code;
Dim Flds As Variant
Dim N As Integer
Public Sub Process2()
Range("B5").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
N = 1
If Cells(5, 2) > 2.5 Then
Cells(5, 7) = N + 1
End If
what i do is refresh a pivot table each minute, but i need cells(5,7) to
count up 1 increment for each time the value in cells(5,2) is > than 2.5.
any way to adjust this so it works?.thanks
Dim Flds As Variant
Dim N As Integer
Public Sub Process2()
Range("B5").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
N = 1
If Cells(5, 2) > 2.5 Then
Cells(5, 7) = N + 1
End If
what i do is refresh a pivot table each minute, but i need cells(5,7) to
count up 1 increment for each time the value in cells(5,2) is > than 2.5.
any way to adjust this so it works?.thanks