+ Reply to Thread
Results 1 to 4 of 4

move row from one workbook to another

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    1

    move row from one workbook to another

    Hi,

    I am new to VB and am trying to move one row of data and append it to the first nonblank row of another workbook. I have figured out how to append it to the first blank row in another sheet within the same workbook but I want to move it to another workbook. Any help would be great!
    Here is the code that works for moving it to another sheet. It moves Row 4 from the sheet called Project List and copies it to the sheet called complete, putting it below the last row that is available. I want to move it to another workbook on another drive.

    Anyway to move it to another workbook? I have attached the excel file but here is the Macro that works correctly:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Leith Ross; 09-25-2009 at 07:08 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: move row from one workbook to another

    Hello alwings,

    Welcome to the Forum!
    You need to tell VBA which workbook by prefixing the worksbook name to the worksheet.

    Example
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: move row from one workbook to another

    I'm following this post and I have a question for Leith Ross. Doesn't
    Please Login or Register  to view this content.
    need to opened to do this
    Please Login or Register  to view this content.
    J
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: move row from one workbook to another

    Hello JL,

    Yes, the second workbook must already be open when the macro runs or an error will occur.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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