Excel Database

alliswell

Board Regular
Joined
Mar 16, 2020
Messages
194
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile
Hi every body

I have only 2 rows data A1:B23 to be transfered from sheet1 to DATABASE sheet one after other.
I have created TRANSFER command button in Sheet1. What i want is whenever i press TRANSFER button, that 2 rows A1:B23 must get transferred to DATABASE sheet one after other.

Thanks, love & regards yo everyone on mr excel
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi every body

I have only 2 rows data A1:B23 to be transfered from sheet1 to DATABASE sheet one after other.
I have created TRANSFER command button in Sheet1. What i want is whenever i press TRANSFER button, that 2 rows A1:B23 must get transferred to DATABASE sheet one after other.

Thanks, love & regards yo everyone on mr excel
No reply yet
 
Upvote 0
Judging by the information provided, you could just copy and paste.
 
Upvote 0
What do you mean "every time"? I feel like there is information you are leaving out. Does the data in the two rows change? If so, how?
Every entry i have to put to database sheet for backup. Lots of entry for longer and shorter bar atleast 400 to 500 forms to feed at at a time so copy paste every record will be mess. Only 2 rows in working. Everytime figures will change. Thats it.
 
Upvote 0
I don't know if this is what you need because I still feel like there is more information not being provided.
VBA Code:
Sub Copy2Rows2Database()
Dim wb As Workbook, sht1 As Worksheet, sht2 As Worksheet, rng As Range, lRow As Integer
Set wb = ThisWorkbook: Set sht1 = wb.Sheets("Sheet1"): Set sht2 = wb.Sheets("DATABASE")
Set rng = sht1.Range("A1:B23")
lRow = sht2.Columns("A").Rows(sht2.Rows.Count).End(xlUp).Row + 1
rng.Copy sht2.Range("A" & lRow)
Application.CutCopyMode = False
End Sub
 
Upvote 0
I don't know if this is what you need because I still feel like there is more information not being provided.
VBA Code:
Sub Copy2Rows2Database()
Dim wb As Workbook, sht1 As Worksheet, sht2 As Worksheet, rng As Range, lRow As Integer
Set wb = ThisWorkbook: Set sht1 = wb.Sheets("Sheet1"): Set sht2 = wb.Sheets("DATABASE")
Set rng = sht1.Range("A1:B23")
lRow = sht2.Columns("A").Rows(sht2.Rows.Count).End(xlUp).Row + 1
rng.Copy sht2.Range("A" & lRow)
Application.CutCopyMode = False
End Sub
Thanks a lot. I will check and let you know
 
Upvote 0
I don't know if this is what you need because I still feel like there is more information not being provided.
VBA Code:
Sub Copy2Rows2Database()
Dim wb As Workbook, sht1 As Worksheet, sht2 As Worksheet, rng As Range, lRow As Integer
Set wb = ThisWorkbook: Set sht1 = wb.Sheets("Sheet1"): Set sht2 = wb.Sheets("DATABASE")
Set rng = sht1.Range("A1:B23")
lRow = sht2.Columns("A").Rows(sht2.Rows.Count).End(xlUp).Row + 1
rng.Copy sht2.Range("A" & lRow)
Application.CutCopyMode = False
End Sub
yes you were right. sorry my mistake. i didnt mention the range of database sheet to paste
so its range is A7:U7

thanks
 
Upvote 0
Yeah, so you're going to have to give me a visual example of what you have and what you expect.
 
Upvote 0

Forum statistics

Threads
1,223,924
Messages
6,175,416
Members
452,640
Latest member
steveridge

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