save data sheet to another sheet via command button

jammoca

Banned
Joined
Nov 6, 2002
Messages
1,100
save data to another sheet via command button

I have a userform that causes results to be entered in various cells on a sheet called "TouchPaddata".

On the same userform, I have a button that I would like, when pressed, to send the values in some of those cells to specific cells in another sheet called "1st Qtr", some to be sent to the sheet "2nd Qtr", others to "3rd Qtr" and others to "4th Qtr".

The cells in the original sheet "TouchPaddata" will then be cleared, ready for use for the next new Football Game.

Is this possible or is there a more sensible way of keeping data from a sheet that needs to be cleared each week ?
 
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
That sounds entirely possible.

wouldn't something like this do?

Code:
Sub testing()

With Sheets("touchpaddata")
        
        Sheets("Qtr1").Range("A1").Value = Range("A1").Value
        Sheets("Qtr2").Range("A1").Value = Range("A2").Value
        Sheets("Qtr3").Range("A1").Value = Range("A3").Value
        Sheets("Qtr4").Range("A1").Value = Range("A4").Value

Range("A1:A4").ClearContents

End With

End Sub
 
Upvote 0

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