In sheet4 remove the mentioned type of all data and paste that data to sheet6

I have highlighted this data we have to remove all this type of data from sheet4 to  sheet6
when we will remove this data then It will be a blank row
but I don't want that blank row also delete that row

What I want is that in sheet4  remove this type of all  data and paste that data to  sheet6
Sachin SinghAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
I have highlighted this data we have to remove all this type of data from sheet4 to  sheet6
What do you mean by all this type of data?
Do you mean, you only want to transfer yellow highlighted row from Sheet4 to Sheet6? And will you manually highlighted those rows?
Sachin SinghAuthor Commented:
No Neeraj Sir i want to transfer all that rows that contains  that SL order  in clolumn K
i have to transfer all that entire row that consist SL in column K
and second thing after transferring the data i dont want any  any entire row in sheet4 between the data
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this...
Sub CopyFromSheet4ToSheet6()
Dim sws As Worksheet, dws As Worksheet
Application.ScreenUpdating = False
Set sws = Sheets("Sheet4")
Set dws = Sheets("Sheet6")
With sws.Range("A1").CurrentRegion
    .AutoFilter field:=11, Criteria1:="SL"
    .SpecialCells(xlCellTypeVisible).Copy dws.Range("A1")
End With
Application.ScreenUpdating = True
End Sub

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sachin SinghAuthor Commented:
Thnx Neeraj Sir for ur Great Support
Have a Great Day
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Welcome Saching! Thanks & You too!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.