pasting in excel

kavanagh

Board Regular
Joined
Apr 1, 2009
Messages
155
i am creating a time sheet helper i have lists of numbers such aa
row

251 10 4000251
252 10 4000352
256 10 4000333
this list is endless

i have 16 spots on a time sheet to enter into vertically y7 down to y22
i created a button for each set of numbers
to paste each set of numbers into the time sheet when selected

i need the code for when i select the button for the first set of #s to go to the first spot Y7, then when i select Another button for another set, to go to the next spot down Y8 and so on until finished any help would be appreaciated ps there is usually only 5 or 6 numbers selected in a day
 

Some videos you may like

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Hello and welcome to MrExcel.

Can you post the code for one of your buttons.
 

kavanagh

Board Regular
Joined
Apr 1, 2009
Messages
155
ActiveSheet.Shapes("AutoShape 8").Select
Range("A4:L4").Select
Range("L4").Activate
Application.CutCopyMode = False
Selection.Copy
Range("Y7").Selec
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try replacing that with

Code:
ActiveSheet.Shapes("AutoShape 8").Select
Range("A4:L4").Copy Destination:=Range("Y" & Rows.Count).End(xlUp).Offset(1)
 

kavanagh

Board Regular
Joined
Apr 1, 2009
Messages
155
Thank you peter it works great thank you very much i've been stuggeling with this for weeks
 

Watch MrExcel Video

Forum statistics

Threads
1,123,307
Messages
5,600,869
Members
414,411
Latest member
Snowmanaus

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
Top