Hello,
I've been trying to create a macro to find, copy, and paste as a value the last line of this table.
However, I also want to copy the formulas in the last row to the next line in preparation for the next Estimate.
Is this possible?
I have searched here, you-tube, and the web to try to piece together a code but to no success.
I am using excel 2016.
Here is the code I have which I have been trying to play with. I can't even get this to work.
Summary Data Base
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 256px;"><col style="width: 227px;"><col style="width: 300px;"><col style="width: 122px;"><col style="width: 77px;"><col style="width: 154px;"></colgroup><tbody>
</tbody>
<tbody>
</tbody>
I've been trying to create a macro to find, copy, and paste as a value the last line of this table.
However, I also want to copy the formulas in the last row to the next line in preparation for the next Estimate.
Is this possible?
I have searched here, you-tube, and the web to try to piece together a code but to no success.
I am using excel 2016.
Here is the code I have which I have been trying to play with. I can't even get this to work.
Rich (BB code):
Sub FindinglastRow()
Dim ws As Worksheet
Dim lastRow As Long
Dim DataRange As Range
Set ws = ActiveWorkbook.Sheets("Summary Data Base")
'~~> Find LastRow in Col A
Set DataRange = Range("A1:M" & lastRow)lastRow = Range("A" & Rows.Count).End(xlUp).Row
lastRow = sht.Cells
End Sub
Dim DataRange As Range
Set DataRange = Range("A1:M" & lastRow)
Summary Data Base
A | B | C | D | E | F | |
1 | Summary Data Base | |||||
2 | Date | Estimate Number | Customer Name | Total Amount | Rep Inits | Job No. if Applicable |
3 | 05/19/17 | 6441 | Jane Doe | 2933.81 | JO | 6441 |
4 | 05/23/17 | 6442 | C. Scott Marple | 20,730.93 | drs | 6442 |
5 |
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 256px;"><col style="width: 227px;"><col style="width: 300px;"><col style="width: 122px;"><col style="width: 77px;"><col style="width: 154px;"></colgroup><tbody>
</tbody>
Spreadsheet Formulas | ||||||||||||||||
<tbody> </tbody> |
<tbody>
</tbody>