+ Reply to Thread
Results 1 to 2 of 2

Copy Specific Dat

  1. #1
    Registered User
    Join Date
    09-24-2012
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    4

    Copy Specific Dat

    Hello Gentlemen

    I am trying to copy Specific cells when criteria is met.

    Criteria is when row Q has value ="COMPLTE"
    then copy CELL in that row for each column = G,I,J,L,Z,AG,AC

    I am getting error : Run-Time error "438" Object doesn't support property or method.


    can someone please help me ? thank you in advance !

    Sub DataExtraction()

    lastRow = Worksheets("Raw Data").Range("q" & Rows.Count).End(xlUp).Row

    For r = 1 To lastRow

    If Worksheets("Raw Data").Range("Q" & r).Value = "COMPTE" Then


    Worksheets("Raw Data").Range ("G" & r & ",I" & r & ",J" & r & ",L" & r & ",Z" & r & ",AG" & r & ",AC" & r)

    Worksheets("Compiler").Activate
    lastRowRpt = Worksheets("Compiler").Range("a" & Rows.Count).End(xlUp).Row
    Worksheets("compiler").Range("a" & lastRowRpt + 1).Select

    ActiveSheet.Paste


    End If



    Next r



    End Sub

  2. #2
    Registered User
    Join Date
    09-24-2012
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Copy Specific Dat

    resolved. needs .Copy

+ 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 2 specific Sheets, specified range, paste as values to a specific folder
    By wherdzik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2021, 08:35 AM
  2. How to find specific header and copy the specific content in the mail body
    By narsing18 in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2017, 04:53 AM
  3. VBA Macro: Copy and Paste Specific Row Range based on the Specific Value in a Cell.
    By SolidSmoke in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-10-2016, 02:40 PM
  4. [SOLVED] Copy rows with specific text in specific column into specific sheet
    By Valemaar in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-22-2014, 03:23 PM
  5. [SOLVED] Copy a specific range to another sheet adding all the workdays for a specific time period
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-05-2014, 02:19 AM
  6. [SOLVED] Macro to copy specific data from one WB to specific cells in another WB based on specific
    By d_rose in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2014, 11:05 AM
  7. Replies: 0
    Last Post: 09-17-2012, 11:10 AM

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