+ Reply to Thread
Results 1 to 3 of 3

VBA pulling data from other workbooks?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-13-2005
    Posts
    64

    VBA pulling data from other workbooks?

    I realize with links in cells its simple to pull data from other workbooks. But what about with VBA? Is it possible?

    If so, how?

    Furthermore, if so, will the links be relative as well or does vba force you to use absolute references?

    Any further info about links in VBA like this is greatly appreciated.

  2. #2

    Re: VBA pulling data from other workbooks?

    Hello,

    I suggest to look at:
    http://www.erlandsendata.no/english/...php?t=envbadac

    HTH,
    Bernd


  3. #3
    Tom Ogilvy
    Guest

    Re: VBA pulling data from other workbooks?

    In addition to using ADO as suggested,

    The fastest method is usually to have your code enter the linking formula in
    a cell/cells, then get the returned data and clear the formula if
    appropriate. There is no built in support in VBA for linking to a closed
    workbook. There are methods using xl4macro commands, but these are
    generally slower.

    Depends on what you are doing and how much information you need to retrieve
    and whether the information is organized as a database


    --
    Regards,
    Tom Ogilvy


    "ph8" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I realize with links in cells its simple to pull data from other
    > workbooks. But what about with VBA? Is it possible?
    >
    > If so, how?
    >
    > Furthermore, if so, will the links be relative as well or does vba
    > force you to use absolute references?
    >
    > Any further info about links in VBA like this is greatly appreciated.
    >
    >
    > --
    > ph8
    > ------------------------------------------------------------------------
    > ph8's Profile:

    http://www.excelforum.com/member.php...o&userid=19871
    > View this thread: http://www.excelforum.com/showthread...hreadid=516120
    >




+ 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