Copy some portion of the Sheet to different Sheet if Column will have some value

Jyotirmaya

Board Regular
Joined
Dec 2, 2015
Messages
205
Office Version
  1. 2019
Platform
  1. Windows
I have two sheets, "Raw Data" other one "SH"

I want a VBA code that if in the Raw Data sheet AH column there will be some value then the following of Raw Data sheet will be copied to SH sheet. Means the Row will be copied. For example if there will be some value in AH3 of Raw Data then


B3 of Raw Data to C to SH Sheet
C3 of Raw Data to A to SH Sheet
D3of Raw Data to B to SH Sheet
M3 of Raw Data to D to SH Sheet
S3 of Raw Data to E to SH Sheet
Y3 of Raw Data to F to SH Sheet
Z3+AA3 of Raw Data to J to SH Sheet
AB3 of Raw Data to K to SH Sheet
AC3 of Raw Data to L to SH Sheet
AD3+AE3+AF3 of Raw Data to N to SH Sheet
AH3 of Raw Data to O to SH Sheet
Raw Data sheet starts from 3rd row onward & in SH sheet the data should be start copying from Row 4. I need to enter more than 2000 entries in the Raw Data sheet, but I want to copy the only rows where in the AH column of Raw Data sheet will have any value then only it will be copied in SH sheet row 4 onward.
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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