+ Reply to Thread
Results 1 to 3 of 3

Transfering data from one Excel file into another

Hybrid View

mpot4 Transfering data from one... 11-25-2007, 06:59 PM
mikerickson You could put =[test2]w1!A1 ... 11-25-2007, 07:52 PM
mpot4 Thanks for the advise... ... 11-25-2007, 08:14 PM
  1. #1
    Registered User
    Join Date
    09-20-2005
    Posts
    4

    Transfering data from one Excel file into another

    Hi there,

    need to find out the code in VBA to assign data from a cell in 1 excel file to a cell in another.

    For example:

    Cell A1 in Excel file test1, worksheet w1 should be transferred when the macro is started to Cell A1 from Excel file test2, worksheet w1.

    Thanks for your help, guys and girls...

    Marco.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    You could put =[test2]w1!A1 in cell A1 of w1 in workbook test1

    For VB, the syntax would be

    Workbooks("test2").Worksheets("w1").Range("a1").Value = Workbooks("test1").Worksheets("w1").Range("a1").Value

  3. #3
    Registered User
    Join Date
    09-20-2005
    Posts
    4

    Post

    Thanks for the advise...

    I forgot to mention that the excel file is in another directory.

    Say, c:\test1\workbook 26.11.07.xls

    & c:\test2\workbook tomorrow.xls


    and the Cell A1, worksheet w1 in "Workbook tomorrow" needs to obtain the value of Cell A1 in worksheet w1 in "workbook 26.11.07"

    Need to use VBA. Final idea is, that whenever someone update one file the second automatically updates itself too.

    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