+ Reply to Thread
Results 1 to 5 of 5

copying from one workbook to another

Hybrid View

  1. #1
    Registered User
    Join Date
    04-03-2008
    Posts
    14

    copying from one workbook to another

    I want to automatically update a range of cells in one workbook with data from another workbook.

    An example of what I have tried is this:

    I want to automatically update CellsA1-E1 in Book1 with data from CellsA1-E1 in Book2.

    I have put:
    =[Book2.xls]Sheet1!$A$1
    in Book1-Sheet1-A1 and then filled accross to E1 as I would if copying between sheets within the same workbook.

    However, the fill command does not seem to work between workbooks as it would when copying between sheets in the same workbook.
    It correctly copies the contents of Book2-Sheet1-A1 into Book1-Sheet1-A1, but it does not automatically adjust itself - i.e. B1 to B1, C1 to C1 etc.
    All that happens is that the contents of Book2-Sheet2-A1 are copied into each cell accross to E1.

    I have to manually copy each cell individually between the different workbooks. This is very time consuming - is there any way around this?

    I am using Excel 2003 and Windows XP Home SP2

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    The $ prevents the row or column from adjusting as the formula is dragged or copied.
    I'd use this syntax

    =[Book2.xls]Sheet1!A1
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    04-03-2008
    Posts
    14

    Thankyou

    Thanks! That works brilliantly. Now for a follow up question. Is there any quicker way to enter that function =[Book2.xls]Sheet1!A1 other than manually? If I put = in the cell and then click on the target cell, the function generated automatically is =[Book2.xls]Sheet1!$A$1 . Of course I can simply manually remove the $ signs, but I wonder if there is a quicker way of getting the required formula.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    I use a keyboard short cut. It cycles the cell reference through the absolute/relative row/column combinations.

    $A$1 A$1 $A1 A1

    On my Mac, its the combination Cmd+t.

    I believe that Windows machines get the same by pressing F4.

    Your help system, "keyboard shortcut", would know.

  5. #5
    Registered User
    Join Date
    04-03-2008
    Posts
    14

    Thankyou

    F4 works - thanks for your help.

+ 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