VBA: Moving Specific Cells to New Sheet

Chonst

New Member
Joined
Mar 12, 2018
Messages
12
So I need help writing a code that will effectively move this data, ignoring column C and F in the source and put in the new sheet, in a different location. But it just puts it in the next available row, so in the example, as I add more Cool Guys, it wont overwrite my current list of Cool Guys, and then after it does that, I want it clear the contents of the source cells that were CoolGuys again ignoring column C and F.

Everything I've tried so far breaks the spreadsheet or repeats on the Boolean conditional functions and then nothing.

EXSc5DZ.png


Thank you in advance.
 

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.
Everything I've tried so far breaks the spreadsheet or repeats on the Boolean conditional functions and then nothing.

Chonst,

You are posting pictures. This means that if this was a problem where one needed to use your data, anyone trying to help you would have to enter the data manually?????

So that we can get it right on the first try:

You can post your workbook/worksheets to the following free site (sensitive data changed), mark the workbook for sharing, and, provide us with a link to your workbook:

https://dropbox.com
 
Last edited:
Upvote 0
Untested, but try
Code:
Sub FilterCopy()

   With Worksheets("All The Guys")
      If .AutoFilterMode Then .AutoFilterMode = False
      .Range("B2:G2").AutoFilter 4, "Cool Guy"
      With Intersect(.Range("B:B,D:E,F:F"), .Range("B3:G" & .Range("B" & Rows.Count).End(xlUp).Row).SpecialCells(xlVisible))
         .Copy Worksheets("Really Cool Guys").Range("C" & Rows.Count).End(xlUp).Offset(1)
         .ClearContents
      End With
      .AutoFilterMode = False
   End With

End Sub
 
Upvote 0
There was a little tweaking I had to do, but this worked perfectly!

I appreciate it so much!
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

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