Can you help me change this VBA code so that only the SEDOL data in column A is moved up (so its nice and tidy)?
The below method deletes the entire row which is fine to some extent, but it messes up the row numbers , ie if you delete row 3+4+5…..the order of the rows be 1,2,6 etc. this will impact the ability to copy and paste special colum n J
Instead can you advise the code how to move the next available Sedol to move up ie row 19 to row 4, etc
Sub SecurityFormatremove()
Dim lastrow As Long
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
Range("A1:A" & lastrow).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
The below method deletes the entire row which is fine to some extent, but it messes up the row numbers , ie if you delete row 3+4+5…..the order of the rows be 1,2,6 etc. this will impact the ability to copy and paste special colum n J
Instead can you advise the code how to move the next available Sedol to move up ie row 19 to row 4, etc
Sub SecurityFormatremove()
Dim lastrow As Long
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
Range("A1:A" & lastrow).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub