Copy Paste Running Data Macro

scummins22

New Member
Joined
May 3, 2018
Messages
12
Hello,

I am building a customer login sheet/tracker. I have a tablet that I will be running the login sheet off of for the customer's to fill in their information and I have put a shape at the bottom that looks like a button. I want to add a macro to where when they click the button, it copies their information, pastes it to another sheet that will be driven on a share drive, but I don't want it to paste over existing information but fill in the next available space. I am somewhat good at writing macros but I don't know where to start on this one. Can someone help me build the macro to do what I am needing?

The cells in the login screen that I want to copy and paste:
B5:G17
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Please provide login sheet name, destination sheet name and column of destination sheet to be pasted to.
 
Upvote 0
Try, untested

Code:
Sub MM1()
Dim lr As Long
lr = Sheets("Data Sheet").Cells(Rows.Count, "A").End(xlUp).Row + 1
Sheets("Customer Login").Range("B5:G17").Copy Sheets("Data Sheet").Range("A" & lr)
End Sub
 
Upvote 0
Try:
Code:
Sub M2()
    
    Dim x   As Long

    With Sheets("Data Sheet")
        x = .Cells(.Rows.Count, 1).End(xlUp).Row + 1
        .Cells(1, x).Resize(13, 6).Value = Sheets("Customer Login").Cells(5, 2).Resize(13, 6).Value
    End With
    
End Sub
 
Last edited:
Upvote 0
Ok, so that pasted it perfectly. The issue now is that it is pasting over existing data. So how can we make it to where it will just go to the next available line without covering existing data?
 
Upvote 0
My error, try:
Code:
Sub M3()
    
    Dim x   As Long

    With Sheets("Data Sheet")
        x = .Cells(.Rows.Count, 1).End(xlUp).Row + 1
        .Cells(x, 1).Resize(13, 6).Value = Sheets("Customer Login").Cells(5, 2).Resize(13, 6).Value
    End With
    
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,956
Members
448,535
Latest member
alrossman

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