Hi All,
I use some code (courtesy of the forum) but it has one little glitch in that I would like to repair if possible.
The code copies a couple of functions in some cells and pastes them into columns K & L where the new info has just been inputted.
The issue is that if I pull across from rows 15 thru to 30 it inputs the functions into rows 14 thru to 30. It just seems to be that one row up each time. I have tried ammending the code but no luck so far.
The code is:-
Dim LASTROW As Long
Dim lastrow2 As Long
LASTROW = Cells(Rows.Count, 1).End(xlUp).Row
lastrow2 = Cells(Rows.Count, 11).End(xlUp).Row
Range("K1:L1").Copy
Range("K" & lastrow2 & ":L" & LASTROW).Select
Selection.PasteSpecial Paste:=xlPasteFormulas
Any help would be appreciated.
Craig.
I use some code (courtesy of the forum) but it has one little glitch in that I would like to repair if possible.
The code copies a couple of functions in some cells and pastes them into columns K & L where the new info has just been inputted.
The issue is that if I pull across from rows 15 thru to 30 it inputs the functions into rows 14 thru to 30. It just seems to be that one row up each time. I have tried ammending the code but no luck so far.
The code is:-
Dim LASTROW As Long
Dim lastrow2 As Long
LASTROW = Cells(Rows.Count, 1).End(xlUp).Row
lastrow2 = Cells(Rows.Count, 11).End(xlUp).Row
Range("K1:L1").Copy
Range("K" & lastrow2 & ":L" & LASTROW).Select
Selection.PasteSpecial Paste:=xlPasteFormulas
Any help would be appreciated.
Craig.