Hi,
I'm hoping an Excel guru on here can help me with a couple of problems that I've not been able to figure out.
I've designed a spreadsheet for work that uses a listview to display data that is held on a sheet (this is taken from a textfile stored on a network drive). The data is 18000 rows by about 20 columns. The number of rows increases on a daily basis depending as new data is added to the textfile on a daily basis. The number of columns will remain fairly static.
The first problem I have is that when initialising the userform that contains the listview, it takes around 2 or 3 minutes to load the listview with the data from the 18000+ rows. Does anyone know whether there is a quicker way of initially loading the 18000+ rows of data into the listview?
Secondly, I have code that sorts the data shown in the listview when any of the column headers is clicked once. The sort order cycles between no sort -> ascending -> descending. Whilst this code works fine, there is no indication of the current sort order in the column header, so my question is, is there a way of appending some sort of icon to the column header that has been clicked to indicate the sort order. I thought something like a down arrow for ascending, an up arrow for descending and nothing for the no sort.
So, for example if a column named 'Lives' has been sorted in ascending order, the column header title would show 'Lives <down arrow image>', for descending order 'Lives <up arrow image>' and for no sort just 'Lives'.
Apologies for the long explanation above, but I just wanted to be as clear as possible (hopefully)!
Any assistance will be gratefully received as this is beginning to frustrate me!
Chris
I'm hoping an Excel guru on here can help me with a couple of problems that I've not been able to figure out.
I've designed a spreadsheet for work that uses a listview to display data that is held on a sheet (this is taken from a textfile stored on a network drive). The data is 18000 rows by about 20 columns. The number of rows increases on a daily basis depending as new data is added to the textfile on a daily basis. The number of columns will remain fairly static.
The first problem I have is that when initialising the userform that contains the listview, it takes around 2 or 3 minutes to load the listview with the data from the 18000+ rows. Does anyone know whether there is a quicker way of initially loading the 18000+ rows of data into the listview?
Secondly, I have code that sorts the data shown in the listview when any of the column headers is clicked once. The sort order cycles between no sort -> ascending -> descending. Whilst this code works fine, there is no indication of the current sort order in the column header, so my question is, is there a way of appending some sort of icon to the column header that has been clicked to indicate the sort order. I thought something like a down arrow for ascending, an up arrow for descending and nothing for the no sort.
So, for example if a column named 'Lives' has been sorted in ascending order, the column header title would show 'Lives <down arrow image>', for descending order 'Lives <up arrow image>' and for no sort just 'Lives'.
Apologies for the long explanation above, but I just wanted to be as clear as possible (hopefully)!
Any assistance will be gratefully received as this is beginning to frustrate me!
Chris