+ Reply to Thread
Results 1 to 4 of 4

Copy a specific row.

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    37

    Copy a specific row.

    Hi all

    I have a probably simple issue with VBA.

    I have 2 Workbooks A and B

    I now would like to copy the entire row X from Workbook A to Workbook B.

    Row X has to be selected: In Cell "C5" of Workbook B is a Number 12345. There is only one Row in Workbook A which has this number in column A.

    So, Select the Row in Workbook A which starts with the equialent Number of C5 in Workbook B and Copy it.

    Can anyone assist?

    Thank you very much!

    Pascal

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy a specific row.

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-11-2014
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Copy a specific row.

    Hello and thank you!
    what exactly does this code do?

    For i = Range("A" & Rows.count).End(3)(1).Row To 2 Step -1

    Thank you!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy a specific row.

    It starts at last row with data in Column A of Workbook A and loops up one cell at a time. In this case when until it reaches a value that has x it exits the loop and the sub.

+ 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] 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
  2. [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
  3. HELP! Macro to Copy specific cells from one sheet to another based on specific criteria
    By atriscritti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 11:05 AM
  4. Replies: 0
    Last Post: 09-17-2012, 11:10 AM
  5. Macro to copy specific data to specific columns from a pivot table
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2012, 07:24 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