Pasting cut cells VBA

JasonBing

New Member
Joined
Aug 6, 2019
Messages
49
First to mention is that I am very green to VBA. I am starting to get my head around it but I am very green

I am writing a database for my business

I have a list of jobs on a GabttChart the data for each job is in groups of 10 rows see example

91acebd1-dec6-4529-b14e-13f8336f3f3a


I have created a button to select and cut the group of 10 rows containing the data for one job. that works well

I need a code to paste the cut rows above the active cell

I know you can just select the row and insert cut cells. But I have people, with not a lot of computer experience using this and they have asked for a button!

This is the result I need would end up like this

9c521890-29b2-4e88-a0be-cfe44319a0cb


Please Help!! I have combed the net for the answer

Thanks guys

Regards

JasonBing
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
it would appear the pictures did not post.

I am not sure why........ It has not been my day!
Welcome to the MrExcel board!

Not sure how you tried to insert images. See the link in my signature block below for ways to post small samples of your sheet(s)
 
Upvote 0
Welcome to the MrExcel board!

Not sure how you tried to insert images. See the link in my signature block below for ways to post small samples of your sheet(s)

I used the insert picture. Here is another try!! Thanks for your reply by the way!!

Here is the desired result

1111111
2222222
3333333
4444444
5555555
6666666
7777777
8888888
9999999
10101010101010
1111111
2222222
3333333
4444444
5555555
6666666
7777777
8888888
9999999
10101010101010
1111111
2222222
3333333
4444444
5555555
6666666
7777777
8888888
9999999
10101010101010
1111111
2222222
3333333
4444444
5555555
6666666
7777777
8888888
9999999
10101010101010

<colgroup><col width="83" span="7" style="width: 62pt;"></colgroup><tbody>
</tbody>


1111111
2222222
3333333
4444444
5555555
6666666
7777777
8888888
9999999
10101010101010
1111111
2222222
3333333
4444444
5555555
6666666
7777777
8888888
9999999
10101010101010
1111111
2222222
3333333
4444444
5555555
6666666
7777777
8888888
9999999
10101010101010
1111111
2222222
3333333
4444444
5555555
6666666
7777777
8888888
9999999
10101010101010

<colgroup><col width="83" span="7" style="width: 62pt;"></colgroup><tbody>
</tbody>


Thanks for your help
 
Upvote 0
Not too sure how the second attempt went to post pictures.

I thought I would add that the reason for the cut and insert rows is because the Gantt Chart uses data in about 100 rows

Thanks
 
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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