+ Reply to Thread
Results 1 to 5 of 5

Coping data from workbook to another workbook

  1. #1
    Forum Contributor
    Join Date
    05-10-2016
    Location
    EUROPE
    MS-Off Ver
    Excel 365 64 bitt
    Posts
    194

    Coping data from workbook to another workbook

    Hi,

    I need a VBA code that copies data from workbook1 from a specific sheet (sheet name = DATA1) to workbook2 to a specific sheet (sheet name = DATA2)

    I need to copy just values

    The range that need to be copied is:
    B5:S16
    B18:S29
    B31:D42
    X3:Z47
    AC3:AE21
    AC23:AD34
    AC36:AD47

    Thanks in advance:
    B.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Coping data from workbook to another workbook

    Are values pasted to same cells in Data2 as in Data1t?
    In which workbook is the VBA?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Contributor
    Join Date
    05-10-2016
    Location
    EUROPE
    MS-Off Ver
    Excel 365 64 bitt
    Posts
    194

    Re: Coping data from workbook to another workbook

    Hi,

    Yes, values has to be pasted to same cells in Data2 as in Data1.
    I would like VBA code to be in workbook2.

    Thanks:
    B.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Coping data from workbook to another workbook

    This code opens workbook1, copies the values , and closes workbook1

    Put in general module in workbook2 and amend the 3 constant values to match your file name and sheet names
    Please Login or Register  to view this content.
    To paste values only
    replace:
    Please Login or Register  to view this content.
    with either:
    Please Login or Register  to view this content.
    or this single line which attributes values directly to the cells - this is the fastest method
    Please Login or Register  to view this content.
    Last edited by kev_; 02-13-2018 at 09:31 AM.

  5. #5
    Forum Contributor
    Join Date
    05-10-2016
    Location
    EUROPE
    MS-Off Ver
    Excel 365 64 bitt
    Posts
    194

    Re: Coping data from workbook to another workbook

    Hi,

    Thank you for this solution. This helps a lot.

    All the best.
    B.

+ 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] Coping data from one workbook to another based on specific criteria
    By AlbinoRyno88 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-03-2017, 04:50 PM
  2. Coping sheet into another workbook
    By OpOrange in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2015, 12:27 PM
  3. Replies: 2
    Last Post: 04-06-2014, 10:44 PM
  4. [SOLVED] Coping certian columns from numerous sheets in workbook to a new sheet
    By TERRI LEE in forum Excel Programming / VBA / Macros
    Replies: 73
    Last Post: 09-19-2012, 05:36 AM
  5. Replies: 3
    Last Post: 08-11-2011, 02:16 AM
  6. Coping Contents of one Sheet into Another Workbook
    By Egon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2005, 01:30 PM
  7. [SOLVED] Coping formulas to new workbook
    By big jim in forum Excel General
    Replies: 12
    Last Post: 08-03-2005, 12:05 AM

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