I ended up being able to transfer data without having to delete prior.
Now Im having trouble selecting the column headers along with the data when added to previous data.
I dont want the column header, just the data.
Sub RefreshData()
Dim sPath As String
sPath = ThisWorkbook.Path & "\Data_File.csv"
copyDataFromCsvFileToSheet sPath, ",", "Sheet1"
End Sub
Private Sub copyDataFromCsvFileToSheet(parFileName As String, _
parDelimiter As String, parSheetName As String)
Dim Data As Variant
Data = getDataFromFile(parFileName, parDelimiter)
If Not isArrayEmpty(Data) Then
With Sheets(parSheetName)
lr = Cells(Rows.Count, 1).End(xlUp).Row
.Cells(lr, 1).Resize(UBound(Data, 1), UBound(Data, 2)) = Data
End With
End If
End Sub
Bookmarks