+ Reply to Thread
Results 1 to 4 of 4

Copy values to new sheet if criteria is met

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013/10/07/03
    Posts
    33

    Copy values to new sheet if criteria is met

    Good afternoon all,

    Apologies if this is a stupid question i am new to VB. I am trying to write a simple code to copy the row of data (and possibly formatting) from one sheet (Datasheet) to another (Overdue) if the value in row AE = Yes. I wrote the below which has the issue of copying the actual formulas. Additionally i would like to tell the code to start pasting from cell A2 so i can keep my headings.

    Please Login or Register  to view this content.

    Any help would be greatly appreciated.

    Pytheus

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Copy values to new sheet if criteria is met

    If your data has headings and starts in cell A1 you could also use autofilter instad of looping through rows.

    Please Login or Register  to view this content.
    Alf

  3. #3
    Registered User
    Join Date
    11-08-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013/10/07/03
    Posts
    33

    Re: Copy values to new sheet if criteria is met

    Works a treat, cheers.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Copy values to new sheet if criteria is met

    You are welcome.

    Thanks for feed back and rep.

    Alf

+ 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. copy row values to respective sheet if a criteria is met
    By openlocks in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2014, 12:32 AM
  2. Copy values from another sheet based on criteria
    By webisti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2013, 02:48 PM
  3. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  4. [SOLVED] Copy values from one sheet to another as per given criteria in sheet nr 3
    By maciekban in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2012, 01:50 PM
  5. Replies: 1
    Last Post: 10-05-2005, 06:05 AM

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