+ Reply to Thread
Results 1 to 3 of 3

VBA - copy column if value is "1"

  1. #1
    Registered User
    Join Date
    07-21-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    55

    VBA - copy column if value is "1"

    Hi All

    I am new to VBA but looking for a macro/VBA that copies the columns E:F to columns M:N in the attached sheet when the value in cell C1 is equal to 1. I would ideally like a chunk of VBA that also does the query in cell C1 and copies the columns - therefore removing the need for the query in Cell C1.

    Hope this makes sense!

    Thank you.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-21-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    55

    Re: VBA - copy column if value is "1"

    Is anyone able to help please?

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: VBA - copy column if value is "1"

    This code copies when col c has a value of 1. What you want to sort or filter is not clear.

    Please Login or Register  to view this content.
    cc1.png
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  2. Replies: 1
    Last Post: 01-22-2016, 09:21 AM
  3. Macro to copy cells from workbook,where column C is = "num1" AND Column D ="num2"
    By jarious87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2013, 03:30 PM
  4. [SOLVED] macro to search for "NO" in a cell and copy all but "NO" to a different column! plz help
    By fredderf81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2013, 03:19 PM
  5. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  6. [SOLVED] Copy multiple rows that contain a certain "name" in column "A" then paste it into new work
    By rschlot2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2013, 02:25 PM
  7. Need to copy text from full "A" column to "A" column on new sheet....
    By Stonesifer in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-15-2011, 02:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1