VBA to get Data from other sheet and paste into given sheet range J9

Shazir

Banned - Rules violations
Joined
Jul 28, 2020
Messages
94
Office Version
  1. 365
Platform
  1. Windows
I do not know that where from i should start so posted my problem here to get the solution.

I have two sheets named Sheet1 and Sheet2.

Sheet1 has data which is available in row 4 and 5, where code will fetch that in row 4 has word "KP" then code will copy the exactly data available under word "KP" to end of the data (Data of row 5 will be copied). Row can be changed up to 10 rows to fetch the word "KP".

The code will not copy the data which is before the word "KP" that is highlighted. If "KP" is available in any of the row that is up to 10 rows then data will be copied from below row of that specific word "

I have pasted the required data into Sheet2 which is required from Sheet1.

Help would be highly appreciated in this regards.

That is Sheet1
1606218181217.png



That is Sheet2
1606218234476.png
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

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