vba - Put Excel array values in cache -
i have large database (700.000+ lines in 20 columns) import in excel , different manipulations on.
an example of such manipulation categorizing. use 2 columns: material type , category , output in column 'final category' by:
if materialtype = "serv" or category = "service" finalcategory = "service"
what fastest way perform calculation?
currently use loop , disabled application.screenupdating.
i wondering, there way put these columns in cache , run it?
hope can help,
cheers!
let's 'materialtype' column , 'category' column b , 'finalcategory' column u. can try this:
dim strformula string strformula = "=if(or(a1=""serv"",b1=""service""),""serv"","""")" sheet1.range("u1:u700000").formula = strformula
this avoids looping on 700,000 rows , doing indvidual operation, can painfully slow no screen updating.
Comments
Post a Comment