Ask for code to copy and paste between worksheets on next available row

impresxy

New Member
Joined
Apr 10, 2013
Messages
17
Hello,

I need help, please.
I have 3 worksheets. 2 of them are templates and the other one is like a database. I would like to get information from the 2 templates to be sent to the database one which it has to be next available row.

I can have the code for copy and paste but if anyone has the code that can just have "Sheet1.value = Sheet3.value" or something like that would be very appreciated.

Please let me know if my explanation is not enough. I am very new.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
What is the database sheet name and is it all data from both template sheets that has to be copied across, what do you want to do with the template sheets once the data has been copied across? Is the data in rows on the templates, which range of cells do you want copied across?

Please provide more information or even copy and paste some sample data into your thread from each template and also the database sheet, how it is laid out and which rows etc.
 
Upvote 0
What is the database sheet name and is it all data from both template sheets that has to be copied across, what do you want to do with the template sheets once the data has been copied across? Is the data in rows on the templates, which range of cells do you want copied across?

Please provide more information or even copy and paste some sample data into your thread from each template and also the database sheet, how it is laid out and which rows etc.

Database sheet name = "DB"
is it all data from both template sheets that has to be copied across = No, only some cells from both sheets
what do you want to do with the template sheets once the data has been copied across = I can leave the data like that, but when it's reopened, can it be cleared ?
Is the data in rows on the templates, which range of cells do you want copied across? = there are many cells, can you give example for "C56" to database "A14" please ?


How can I attach picture?
 
Upvote 0
It is as easy as copying and pasting into your thread but to give a better picture how it is laid out, look to use either MrExcelHTML or Excel Jeanie Html
 
Upvote 0
Hi,

Im sorry I do not have permission to install as the link you suggest. Is there anyway I can do for explanation?
 
Upvote 0
Either copy and paste as I have also mentioned or upload a sample of your workbook to a third party and then add the link into your thread to download it.
 
Upvote 0
Here. When I fill up sheet 1, I would like it to append to Database sheet. Sheet1!D3 to Database!A1

Sheet1
ABCD
1Customer Name Date
2Company NameRev
3Invoice no.Index

<TBODY>
</TBODY>


Database Sheet
ABCDEF
1IndexCustomer NameCompany NameInvoice no.DateRev
2
3

<TBODY>
</TBODY>
 
Upvote 0
Here is some code based on your example

Sub MoveMe1()
Sheets("Database").Select
Range("a65536").Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, 0).Select
With ActiveCell
.Value = Sheets("sheet1").Range("d3")
.Offset(0, 1).Value = Sheets("sheet1").Range("b1")
.Offset(0, 2).Value = Sheets("sheet1").Range("b2")
.Offset(0, 3).Value = Sheets("sheet1").Range("b3")
.Offset(0, 4).Value = Sheets("sheet1").Range("D1")
.Offset(0, 5).Value = Sheets("sheet1").Range("D2")
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,455
Messages
6,055,540
Members
444,794
Latest member
HSAL

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