Excel VB question
I made an Excel workbook that has a pivot table, and a button with a code that lets you select a CSV (text) file to be used as the new data for the pivot. The pivot data is located in a sheet in the workbook, and referenced by a range name. my code is doing it in a primitive way, which is : delete the old data range open the CSV file. copy all paste in "data" sheet redefine "data" range close CSV file This works OK as long the CSV file is small, when I get to above 10k lines, it takes him a long time to process. what is the better way to do it ?
I made an Excel workbook that has a pivot table, and a button with a code that lets you select a CSV (text) file to be used as the new data for the pivot. The pivot data is located in a sheet in the workbook, and referenced by a range name. my code is doing it in a primitive way, which is : delete the old data range open the CSV file. copy all paste in "data" sheet redefine "data" range close CSV file This works OK as long the CSV file is small, when I get to above 10k lines, it takes him a long time to process. what is the better way to do it ?