excel - lessen loading or processing Time in VBA -
i have small code cuts , pastes cell cell if cell has empty adjacent cell. every time run code, takes more minute finish entire column. here's small code.
sub movecell() dim range each in range("b10:b1000") if <> "" if a.offset(0,2) = "" a.cut a.offset(0,4) end if end if next end sub
is there way around code?
setting application.screenupdating = false
before loop , application.screenupdating = true
after loop should stop screen flashing , may improve time slightly.
Comments
Post a Comment