VBA to input/delete row and copy data

jlucky44

New Member
Joined
Jan 5, 2017
Messages
5
Hello,

I'm trying to create Two Macros but I'm completely lost since I have not much experience building them. Those macros will be linked to different buttons.

First Macro (Add Row/Copy Data)
Two different sheets I create a function which returns "c" at the last row I would like to add a row on top of, I also would like the information from the last row copied into the new row.

Second Macro (Delete Row)
Basically this macro is supposed to delete the row on top[ of the C

I appreciate any input on this!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,
this should be possible but I don't really understand the part in the first macro about a function returning a C at the last row you would like to add a row on top of. Could you explain a little further?
 
Upvote 0
Yes of course, the "C" is just a variable created with the normal offset function in excel. The "C" would be located in column C and always be in the last row where I want to add a Row on top of with all formulas copied over.

Does that make any sense, I would provide pictures but I don't know how to add them to the discussion.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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