ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I change this code? (https://www.excelbanter.com/excel-discussion-misc-queries/190827-how-do-i-change-code.html)

OrlaLynch

How do I change this code?
 
This copies a line up for me but I can't get it to copy a line down. How do I
change it?

With ActiveCell

.EntireRow.Copy .Offset(-1, 1 - .Column)
End With

Rick Rothstein \(MVP - VB\)[_656_]

How do I change this code?
 
As a guess... change the -1 to 1....

..EntireRow.Copy .Offset(1, 1 - .Column)

Rick


"OrlaLynch" wrote in message
...
This copies a line up for me but I can't get it to copy a line down. How
do I
change it?

With ActiveCell

.EntireRow.Copy .Offset(-1, 1 - .Column)
End With




All times are GMT +1. The time now is 02:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com