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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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