Vba re arrange date into a second sheet

ANTONIO1981

Board Regular
Joined
Apr 21, 2014
Messages
162
HI

in the attached file NEW SITES & RENOVATIONS.xlsx - Google Drive


I have to re arrange the data

the target is to create sheet 2 based on the information in Sheet 1 column C ( take only data containing words "Renovation", "Disposal", "New sites" )

Sheet 2 row A is hardcoded so no code is required

how the code will be?

thanks in advance

AC
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I have this code but it doesn't work when my data instead of starting in A1 in sheet1 starts in P9 . how can in correct?

<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit; line-height: 12px;">Sub test()
Sheets("sheet2").Cells(1).CurrentRegion.Offset(1).ClearContents
With Sheets("sheet1").Cells(1).CurrentRegion
.Parent.AutoFilterMode = False
.AutoFilter 3, Array("Renovation", "Disposal", "New sites"), 7
.Copy Sheets("sheet2").Cells(1)
.AutoFilter
End With
End Sub</code>
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

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