automated verification of hyperlinks?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using visual basic (macro) I am able to pull out hyperlink information for
those hyperlinks that exist on my powerpoint slides. I write this info to an
excel spreadsheet. Is there a clever way using a macro to automatically open
each hyperlink in the excel spreadsheet to verify it exists (maybe you get an
error code if it can't be open)?
 
You might look here for the FixLinks tool. It might do just what you
want unless you are really intent on doing it yourself in which case
you'll have to ask Steve how he did it in FixLinks.
--David

--
David M. Marcovitz, Ph.D.
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
Using visual basic (macro) I am able to pull out hyperlink information for
those hyperlinks that exist on my powerpoint slides. I write this info to an
excel spreadsheet. Is there a clever way using a macro to automatically open
each hyperlink in the excel spreadsheet to verify it exists (maybe you get an
error code if it can't be open)?

It might be simpler to do it within PPT while you're extracting the data.
There are, at last count, 17.34 bazillion subtly different types of links in PPT
but for the most part, the hyperlink's .Address property points to the file the
hyperlink needs; the .Subaddress property points to the location within the
file.

If the link's to a file, then something like this should be enough:

If Len(Dir(.Address)) > 0 Then
Debug.Print "It exists"
End If

That'll error if it's an HTTP or FTP or EMAIL link though, so you'll have to
deal with trapping the errors or otherwise ignoring links that aren't to local
files.

You can still test some of these: PowerPoint can open files via HTTP or FTP, so
if they're html files, ppt files or other types PPT can open, you could do:

Presentations.Open .Address

and trap any errors, then .Close the presentation. Might take considerable time
if they're large files coming over a slow link.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Using visual basic (macro) I am able to pull out hyperlink information for
those hyperlinks that exist on my powerpoint slides. I write this info to an
excel spreadsheet. Is there a clever way using a macro to automatically open
each hyperlink in the excel spreadsheet to verify it exists (maybe you get an
error code if it can't be open)?

OBTW, the FixLinks tool David mentioned is at www.pptools.com
The free demo might give you all the info you're after. If so, use it and
prosper. <g>

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top