+ Reply to Thread
Results 1 to 3 of 3

Copy and Paste with a selection criteria

  1. #1
    Registered User
    Join Date
    02-02-2015
    Location
    Madrid
    MS-Off Ver
    Windows 7 enterprise
    Posts
    5

    Copy and Paste with a selection criteria

    Please find attached the problem on the Excel Sheet

    Objective: Copy the range of values from row 4 and paste them AS VALUES in row 5.

    Restriction: However, I only want to copy & paste the values from ROW 4 that correspond to FLAG = 1

    As you can see the values in Row 5 (which have a formula) go further away, so my idea is to copy & paste the values of row 4, corresponding to the Flag = 1 without messing it up the formula in the columns of ROW 5 that go futher away.

    My idea was to select the Range of values in Row 4, apply a selection criteria (i.e. only select and copy the values where FLAG = 1) and then paste them in Row 5.

    I tried to use the .Autofilter in VBA but I'm still a noob in VBA programming. Maybe there is an easier way to do this.
    Can you help me?

    [B]IMPORTANT[B]: It might make things more dificult but there are values that correspond to FLAG = 1 which the value is 0 ("zero")

    Much appreciated
    Attached Files Attached Files
    Last edited by FredericoOliveira; 07-16-2015 at 10:29 AM. Reason: forgot to attach file

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Copy and Paste with a selection criteria

    Hi there,

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    02-02-2015
    Location
    Madrid
    MS-Off Ver
    Windows 7 enterprise
    Posts
    5

    Re: Copy and Paste with a selection criteria

    Thank you a lot for the help.
    Is working prefectly

+ 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 and paste 10 cells below selection
    By garagemusic in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2014, 06:50 AM
  2. Replies: 0
    Last Post: 10-29-2013, 09:38 AM
  3. Copy Selection and Paste using Insert
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-24-2013, 07:09 AM
  4. copy and paste multiple selection
    By chopstxnrice in forum Excel General
    Replies: 11
    Last Post: 04-09-2013, 08:57 AM
  5. [SOLVED] Selection copy and paste columns
    By Stonebirds in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2012, 01:16 PM
  6. copy and paste multiple selection
    By Gareth in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-13-2010, 04:28 AM
  7. copy manual selection, then paste
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2007, 11:00 PM

Tags for this Thread

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