+ Reply to Thread
Results 1 to 6 of 6

Copying specific rows from workbook containing data to a template workbook

  1. #1
    Registered User
    Join Date
    02-23-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    55

    Copying specific rows from workbook containing data to a template workbook

    So I basically have a template workbook that the code is stored in. I need it to pull an entire row if Column C in workbook "rawdata" contains specific text, in this case "PRCH - Purchase".
    I have never had to do anything like this before, it has always been working in the same workbook. Can someone tell me where I went wrong? It's failing at the 'mp = ...' line every time. There might be other errors in the code too, I just cannot resolve the first one! Any help is appreciated!

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Copying specific rows from workbook containing data to a template workbook

    The syntax for cells is cell(Row,Column)

    You have it reversed in that line.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-23-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Copying specific rows from workbook containing data to a template workbook

    Quote Originally Posted by alansidman View Post
    The syntax for cells is cell(Row,Column)

    You have it reversed in that line.
    Thanks for catching that. I reversed it and I still get an 'object required' error on that line. Any ideas?

  4. #4
    Registered User
    Join Date
    02-23-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Copying specific rows from workbook containing data to a template workbook

    Anyone see anything wrong? I have yet to figure this one out.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Copying specific rows from workbook containing data to a template workbook

    It would be helpful if you posted the entire code and uploaded the workbooks associated with confidential data dummied up.

  6. #6
    Registered User
    Join Date
    02-23-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Copying specific rows from workbook containing data to a template workbook

    Quote Originally Posted by alansidman View Post
    It would be helpful if you posted the entire code and uploaded the workbooks associated with confidential data dummied up.
    Sorry for some reason I didn't get an email that there was a response! This is all the code I have so far. Basically I need script that is in the "template" worksheet to pull data from the "rawdata" spread sheet. In the rawdata sheet, it's searching Column C for specific values. If it finds that value, copy the whole row to the template spread sheet, in a specific tab - "PRCH" is the pre existing tab in the template worksheet in this case.

    I'm really a newb to this, but isn't the code above enough to do that?

+ 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] Copying specific rows from an open workbook into the next row of a closed workbook.
    By Deimola in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2012, 12:59 PM
  2. Copying Specific Data from One Workbook and Pasting to Another
    By dgarant in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-06-2012, 09:17 PM
  3. Copying specific data if criteria is met from workbook to workbook
    By slyolfox in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2011, 12:36 PM
  4. Copying specific rows of data to another workbook
    By Croy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2011, 11:58 AM
  5. Replies: 1
    Last Post: 04-01-2006, 03: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