- Code: Select all
Option Explicit
Dim CellA1 As String
Private Sub Worksheet_Calculate()
Dim varArray() As Variant
With Sheet6
If CellA1 <> .Cells(1, 1).Value Then
CellA1 = .Cells(1, 1).Value
varArray = .Range("A1:A50").Value
.Range("B10000").End(xlUp).Offset(1, 0).Resize(UBound(varArray, 1), UBound(varArray, 2)).Value = varArray
End If
End With
End Sub
I am using the above code to Log prices in column B. I would like to clear this column when the next race loads. Can someone tell me how to achieve this?
Many thanks Bert