excel vba - Speed of Code - VBA -
excel vba - Speed of Code - VBA -
the next code takes @ named ranges , either hides them or unhides them depending on button caption. problem takes exclusively long. 2 5 seconds. set same code new book , runs instantly. there should @ causing or particular problem shooting steps? (obviously new workbook missing 99% of rest of code, wanted confirm can run fast)
application.screenupdating = false application.calculation = xlcalculationmanual if unhidebutton.caption = "hide premium rows" = 1 5 quotereport.range("hidesubs" & i).entirerow.hidden = true next unhidebutton.caption = "unhide" else quotereport.range("hideblanks").entirerow.hidden = false 'hide premium coverage layer each c in quotereport.range("hideblanks").cells if not iserror(c.value) if c.value = "" c.entirerow.hidden = true end if end if next unhidebutton.caption = "hide" end if vba excel-vba
Comments
Post a Comment