Hi, can anyone help me figure out (if there is a way) how to write this code in another way? There is a lot of data and it takes a while for it to load, so is there a way to make this code run faster, or does ListView just take so long to load?
Thank you for any help.
VBA Code:
'load list view
lastLine = Sheet1.Cells(Sheet1.Cells.Rows.Count, "a").End(xlUp).row
ListView1.ListItems.Clear
For X = 2 To lastLine
Set li = ListView1.ListItems.Add(Text:=Sheet1.Cells(X, "a").Value)
li.ListSubItems.Add Text:=Sheet1.Cells(X, "c").Value
li.ListSubItems.Add Text:=Sheet1.Cells(X, "d").Value
li.ListSubItems.Add Text:=Sheet1.Cells(X, "q").Value
li.ListSubItems.Add Text:=Sheet1.Cells(X, "r").Value
li.ListSubItems.Add Text:=Sheet1.Cells(X, "s").Value
li.ListSubItems.Add Text:=Sheet1.Cells(X, "u").Value
li.ListSubItems.Add Text:=Sheet1.Cells(X, "l").Value
li.ListSubItems.Add Text:=Sheet1.Cells(X, "m").Value
Next
Thank you for any help.