Thread: [Solved] Data logging with one button
View Single Post
 
Old 07-02-2016, 07:53 AM
NoSparks NoSparks is offline Windows 7 64bit Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

I would use this on the Sheet's module
Code:
Sub Button1_Click()

    Dim nr As Long  'next row
    Dim rng As Range
    
Set rng = Range("A7:Q7")
nr = Cells(Rows.Count, "C").End(xlUp).Row + 1

rng.Copy Cells(nr, 1)
rng.ClearContents
Range("A7").Select
Application.CutCopyMode = False

End Sub
Reply With Quote