Solved

How to determine if a Excel Spreadsheet references external datasources.

Posted on 2013-05-16
3
261 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

707 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

14 Experts available now in Live!

Get 1:1 Help Now