Solved

How to determine if a Excel Spreadsheet references external datasources.

Posted on 2013-05-16
3
279 Views
Last Modified: 2013-05-19
Heyas,

Can anyone point me in the right direction as to how in VBA terms I could determine if a cell in an Excel spreadsheet was getting it's data from an external datasource Website, DB other workbook etc.  Also if it's possible is there a way to determining what the external datasource was, this may be stretching the limits of vba I think though.
Any help would be much apperciated.

Thank you.
0
Comment
Question by:Zack
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 39170979
Hi,

With a Visual Basic for Applications routine you could iterate through the list of LinkSources for the respective worksheet where the cell resides looking for matches for the cell address.

You could also use the Visual Basic for Applications Find syntax to search for cells with a Formula containing either a "[" or "]" (left & right brace).

Some further discussion here:

"How to find and list all links (external references) in Excel?"
[ http://www.extendoffice.com/documents/excel/953-excel-list-all-links.html ]

BFN,

fp.
0
 

Author Closing Comment

by:Zack
ID: 39179733
Cheers for the info.
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39179763
You're very welcome.

Thanks for closing the question.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now