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
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hello and welcome to MrExcel.

Can you post the code for one of your buttons.
 
Upvote 0
ActiveSheet.Shapes("AutoShape 8").Select
Range("A4:L4").Select
Range("L4").Activate
Application.CutCopyMode = False
Selection.Copy
Range("Y7").Selec
 
Upvote 0
Try replacing that with

Code:
ActiveSheet.Shapes("AutoShape 8").Select
Range("A4:L4").Copy Destination:=Range("Y" & Rows.Count).End(xlUp).Offset(1)
 
Upvote 0
Thank you peter it works great thank you very much i've been stuggeling with this for weeks
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,415
Members
448,960
Latest member
AKSMITH

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