+ Reply to Thread
Results 1 to 8 of 8

VB Code to copy certain data

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to copy certain data

    Hello:

    Please refer to attached file.
    i need VB code to extract certain data in Sheet2 as follows:
    Data range will be from A1 to last cell in Column A with data.
    In this case Row 394.
    Now Check to see if data in column E is blank.
    If blank then copy that row of data and paste in sheet2
    I am manually pasting 2 sets of data as highlighted yellow.

    Let me know if you have any questions.
    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VB Code to copy certain data

    Why can't you use a pivot table and filter on column E, whatever that is?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy certain data

    Hi mike:

    Yes i know that is very easy and great possibility but i want to add the code in the existing macro so that all can be done at the same time.
    Please let me know if you have any questions.
    Thanks.

    R

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VB Code to copy certain data

    Hi Riz,
    Try the attached.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy certain data

    Hi AB33:

    Thanks a lot, works great
    Riz

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VB Code to copy certain data

    See Attached, also code is below.

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy certain data

    Hi MikeTron:

    Your solution works great.
    Thanks
    Riz

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: VB Code to copy certain data

    Another possibility maybe without looping.
    Please Login or Register  to view this content.

+ 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] VB Code to copy certain data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-05-2016, 04:08 PM
  2. [SOLVED] VB Code to copy data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-14-2015, 07:36 PM
  3. VB Code to copy certain data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-23-2015, 03:57 PM
  4. VBA code to make of copy of workbook2 and then copy data in that from Workbook1
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2015, 06:34 AM
  5. Replies: 2
    Last Post: 09-08-2014, 07:35 AM
  6. VBA code to copy data from Excel data table to user form
    By Srikanth H N in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2014, 11:53 AM
  7. Code to Copy Data to Every nth Row
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-07-2012, 05:38 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