Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.


--
ph8
------------------------------------------------------------------------
ph8's Profile: http://www.excelforum.com/member.php...o&userid=19871
View this thread: http://www.excelforum.com/showthread...hreadid=516120

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default VBA pulling data from other workbooks?

Hello,

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

HTH,
Bernd

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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" wrote in message
...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulling/Collating Data from Workbooks chrisk Excel Worksheet Functions 6 April 21st 10 05:27 PM
Pulling Data from other excel workbooks? Frustrated Excel Discussion (Misc queries) 5 November 9th 09 07:19 PM
Pulling data from other wb based on data to populate dropdown list Suzann Excel Discussion (Misc queries) 0 April 23rd 09 04:29 PM
pulling data from multiple workbooks James Excel Discussion (Misc queries) 3 September 18th 08 05:29 PM
Tying to extract all data from a pivot pulling from external data Ted Urban Excel Discussion (Misc queries) 3 September 14th 07 10:50 AM


All times are GMT +1. The time now is 03:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"