+ Reply to Thread
Results 1 to 5 of 5

Macro to take data from one worksheet to another worksheet in another workbook

  1. #1
    Registered User
    Join Date
    02-14-2008
    Location
    South Africa, Pretoria
    MS-Off Ver
    2010
    Posts
    47

    Macro to take data from one worksheet to another worksheet in another workbook

    Hi Folks,

    My plan is to take data from various cells in a worksheet and transfer it to a different workbook and present this data in rows.

    I have tried to do this in the following macro

    Please Login or Register  to view this content.
    To no success.

    Please advise what I must correct
    Regards
    Rob

  2. #2
    Registered User
    Join Date
    02-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Macro to take data from one worksheet to another worksheet in another workbook

    Not sure what you are trying to do but the following copies the values from cells b6 and b7 to the adjacent cells in the new workbook

    I changed a few things to make it work.


    Please Login or Register  to view this content.

    Hope that helps.

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

    Re: Macro to take data from one worksheet to another worksheet in another workbook

    Maybe:

    Please Login or Register  to view this content.
    I could be wrong as well.

  4. #4
    Registered User
    Join Date
    02-14-2008
    Location
    South Africa, Pretoria
    MS-Off Ver
    2010
    Posts
    47

    Re: Macro to take data from one worksheet to another worksheet in another workbook

    Thanks Ihmha,

    Your suggestion does work.

    I have made some small changes which you will notice.

    Please Login or Register  to view this content.
    when I use my submit button to run the macro, the file found at C:\Rob\Data.xlsm automatically opens. Is there some code I can include / remove so as to prevent the opening of the file ?

  5. #5
    Registered User
    Join Date
    02-14-2008
    Location
    South Africa, Pretoria
    MS-Off Ver
    2010
    Posts
    47

    Re: Macro to take data from one worksheet to another worksheet in another workbook

    Hi Folks,

    I have made some progress. The data is captured from the worksheet successfully but it does not write correctly to the new worksheet, for some reason.

    It currently writes the data to "B9" and not what I expected to "B7". Secondly the data is overwriting the old data and not looking for the next open row as I thought it would.

    Any advice would be welcomed.

    The macro is presented below


    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. Macro extract data from other workbook and worksheet
    By madi1004 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 05:19 PM
  2. [SOLVED] Use Template Worksheet and VBA to add a new worksheet to active non macro workbook
    By fbplaya02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 01:34 AM
  3. Replies: 12
    Last Post: 10-11-2012, 07:31 AM
  4. how to return data between worksheet and workbook using macro
    By cboys00 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-16-2012, 01:37 AM
  5. info/data transferred/copied from worksheet to worksheet in same workbook!
    By joe dech in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-17-2012, 02:53 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