Hello all...coming to the experts for help again. I am trying to write a macro to
1.) identify the last row in a sheet
2.) copy the data in that row
3.) Paste that date in the last blank row
4.) Copy the data that is now in the 2nd to last row and paste special values
The code i have now (below) isn't working but it is not properly identifying the last blank row or the second to last row with data. Any and all suggestions are appreciated:
Sheets("Historical Pricing Source Data").Select
Range("A2787").Select
Selection.End(xlDown).Select
Rows("2797:2797").Select
Selection.Copy
Rows("2798:2798").Select
ActiveSheet.Paste
Rows("2797:2797").Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
1.) identify the last row in a sheet
2.) copy the data in that row
3.) Paste that date in the last blank row
4.) Copy the data that is now in the 2nd to last row and paste special values
The code i have now (below) isn't working but it is not properly identifying the last blank row or the second to last row with data. Any and all suggestions are appreciated:
Sheets("Historical Pricing Source Data").Select
Range("A2787").Select
Selection.End(xlDown).Select
Rows("2797:2797").Select
Selection.Copy
Rows("2798:2798").Select
ActiveSheet.Paste
Rows("2797:2797").Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False