excel - Macro to insert 19 rows every nth row? -


i want insert 19 rows every 58 rows. macro inserts 1 single row , can't seem insert 19.

sub insert58() dim rng range set rng = range("a3") while rng.value <> "" rng.offset(58).entirerow.insert set rng = rng.offset(59) wend end sub 

use rng.offset(58).resize(19).entirerow.insert


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -