add row at end of table

Keeske

New Member
Joined
Jul 1, 2005
Messages
23
I've a sheet, now it is 20 rows long. I use it for entering information daily. Every day I've to copy paste the last row to make a new row at the bottom of the table that contains the format and formulas.
Can this be done automatically?
Eg when I select a cell at the lowest row, a new row is added below containing the formulas and format of the row above.
Cell is column A:A contains the data. Can this increase when adding the new row??

Many thanks again!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
copying last row formulae automatically

Have you ever tried using Macros? Try to record a macro for copying and pasting the last row. And use it once before starting your work everyday.
 
Upvote 0
Maybe u can create a short macro that do the copy past - using the macro recorder.

You select then line, then you start to record the manipulation of copy paste
when u have finished to copy the formula, stop the recording

then create a new button and link the macro to the button.

select a line and try to run the macro.

hope it help you

seb
 
Upvote 0
Here is something basic. You will need to adjust it a bit for columns used.
If you put it into the code module for the worksheet (right click tab & "View Code") it will add a new line whenever the worksheet is doubleclickd (anywhere on the sheet).
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
    Dim LastRow As Long
    Dim CopyRange As Range
    '-----------------------------------
    LastRow = ActiveSheet.Range("A65536").End(xlUp).Row
    Set CopyRange = ActiveSheet.Range(Cells(LastRow, "A"), Cells(LastRow, "H"))
    rg = "A" & LastRow + 1
    CopyRange.Copy Destination:=ActiveSheet.Range(rg)
End Sub
 
Upvote 0
Everybody: thanks!

Now I use Brian B's solution and it works perfect. One more thing: what code should I use, and where should I put it, to increase the Date in column A with one everytime I doubleclick?

Thanks in advance
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top