+ Reply to Thread
Results 1 to 6 of 6

Copy Data from Closed workbook (bbb.xls) to Open workbook (aaa.xls)

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    66

    Copy Data from Closed workbook (bbb.xls) to Open workbook (aaa.xls)

    Hi,

    I have 2 workbooks, aaa.xls and bbb.xls.
    I will like to copy information from bbb.xls (cell N14) to aaa.xls (cell F4). But I do not know what the VBA code can use.

    Please help.
    Attached Files Attached Files
    Last edited by alexnkc; 11-21-2013 at 11:22 PM.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy Data from Closed workbook (bbb.xls) to Open workbook (aaa.xls)

    Try this attached sample. This file must be in the same directory as bbb.xls file to work.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Copy Data from Closed workbook (bbb.xls) to Open workbook (aaa.xls)

    Is there other way to copy data from closed workbook (without even needed to open it)

    Try to avoid code below:
    Please Login or Register  to view this content.

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy Data from Closed workbook (bbb.xls) to Open workbook (aaa.xls)

    Try this then:
    Please Login or Register  to view this content.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Copy Data from Closed workbook (bbb.xls) to Open workbook (aaa.xls)

    Have considered referencing the data with a formula, instead of copying with VBA?

    something as simple as =[bbb.xls]Sheet1!$N$11
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    11-27-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Copy Data from Closed workbook (bbb.xls) to Open workbook (aaa.xls)

    Thanks millz and FDibbins..
    It is working...

+ 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 to open a closed workbook and select copy cells into an open workbook
    By helloganesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2013, 02:00 PM
  2. Copy 2 sheets from a open workbook and paste to a closed workbook
    By grimston in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2012, 03:27 PM
  3. Copy cell values from open workbook to closed workbook
    By merrener in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2012, 03:14 AM
  4. Copy data from closed workbook to open workbook
    By amandeepsharma89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2012, 11:20 AM
  5. VBA to copy data from closed workbook to open workbook
    By Anil2007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-27-2011, 12:30 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