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

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -