Missing Header Data in new sheets

Romefucan

Board Regular
Joined
Jan 26, 2006
Messages
60
Hello Team and thank you for all you do. I have searched many threads here to find an answer to most likely a simple issue that I have overlooked.

I am running the code below which works just fine except for 1 issue. When I run the code it does not copy over the first 3 rows of Header Data that I need in the new worksheets it creates. Surely I am missing something ? Perhaps another offset?
Can someone please open my eyes to what I am missing?

Romefucan

Sub Macro2()
Dim WS As Worksheet, R As Range
Application.ScreenUpdating = False
With Sheets("Test")
.Range("A1").AutoFilter field:=4, Criteria1:=">1"
For Each R In .Columns(4).SpecialCells(xlCellTypeVisible).Areas
If R(1).Row > 1 Then
Set WS = Worksheets.Add(After:=Worksheets(Worksheets.Count))
R.Offset(, -3).Resize(, 250).Copy WS.Range("A1")
WS.Name = Replace(R(1).Offset(, -2), ":", ",")
End If
Next R
.AutoFilterMode = False
End With
Application.ScreenUpdating = True
End Sub
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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