Moving a row from one worksheet to the last row of a table on another worksheet

Status
Not open for further replies.

mwamsley

New Member
Joined
Apr 27, 2016
Messages
4
As stated I'm trying to move a row from one worksheet to the last row of a table on another worksheet. I'm trying to create a simple data entry sheet. I have an "Input" worksheet that has 4 "entry" rows and "Server" worksheet that has 4 tables in it that correspond with the 4 "entry" rows. Ideally I want to do this without VB, but I don't think that's possible. I have tried to get this to work a dozen ways, but this in my 1st time to use VB. So far I was working on this:

Code:
Sub Macro1()
'
' Macro1 Macro
'


'


Dim lastrow As Integer


lastrow = Worksheets("server").ListObjects("server_dc_a").ListRows.Count


Worksheets("Input").ListObjects("server_dc_a_input").Range.Copy Destination:=Worksheets("server").ListObjects("server_dc_a").ListRows(lastrow + 1).Range
lastrow = lastrow + 1
End Sub

But anything that will accomplish this is fine. also on the original "Input" worksheet I was wanting the entries to clear after it ran
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Duplicate: http://www.mrexcel.com/forum/excel-...-row-table-another-worksheet.html#post4505127

Please do not post the same question multiple times. All clarifications, directly-related follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will be locked or deleted (rule #12 here: Forum Rules).

If you do not receive a response, you can "bump" it by replying to it again, though we advise you not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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