Davies: isn't the following better (simpler and more elegant)? Starting from the 4th line from the bottom in your code:
my $rngToTopLeft = "A39"; $sht->$rngFrom->Copy; $sht->$rngToTopLeft->Insert;
The main advantage is, that you don't need to exactly calculate the destination range (a calculation that may be error-prone and a hassle).
In reply to Re^2: Inserting copied rows at another position in Excel
by HelenCr
in thread Inserting copied rows at another position in Excel
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |