Finding full path name in edit links

UDcc123

Board Regular
Joined
Feb 24, 2004
Messages
93
This question came up when we were in powerpoint, but it applies to excel too:

When we go to Edit Links, and look at the file name for external links, the entire path doesn't show up anywhere (the files are buried under mounds of subfolders). It says the file we are linked to doesn't exist anymore, so we need to go to the linked folder to see what happened, but the full path isn't displayed:

ex: \xyz123456\data\...\filename.xls

How can we find out what's in the ...

Again, this is more for powerpoint than excel, so we can just do a find/search option.

Thanks!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
To begin with, I am no Powerpoint expert - but hopefully you may be able to develop the following a bit more ....

First off, Powerpoint does not have the record macro capabilities of Excel - which makes life more difficult. Secondly, when dealing with links, the methods have to be different because Powerpoint does not have a LinkSources property. Here is something I cobbled together that seems to work. How would we write details to a slide ? :-
Code:
'===================================================
'- *POWERPOINT* CODE TO CHECK LINKS
'===================================================
Dim MySlide As Slide
Dim MyShape As Object
Dim MyLink As String
Dim LinkOK As String
'-----------------------------------------------
Sub test()
    For Each MySlide In ActivePresentation.Slides
        For Each MyShape In MySlide.Shapes
            If MyShape.Type = msoLinkedOLEObject Then
                MyLink = MyShape.LinkFormat.SourceFullName
                MyCheck = Dir(MyLink)
                LinkOK = IIf(MyCheck = "", "GONE", "OK")
                MsgBox (MyLink & vbCr & LinkOK)
            End If
        Next
    Next
End Sub
'======================================================


For the record, this is an Excel version :-
Code:
'=================================================================================
'- *EXCEL* LIST ACTIVE WORKBOOK LINKS (makes new sheet) 
'- AND CHECK IF FILES STILL EXIST
'- Brian Baulsom December 2007
'=================================================================================
Sub test()
    Dim wb As Workbook
    Dim ws As Worksheet
    Dim MyLinks As Variant  ' array for links
    Dim MyLink As String
    Dim ToRow As Long
    Dim MyCheck As String
    '------------------------------------------------------------------------
    '- add a worksheet for results
    Set wb = ActiveWorkbook
    wb.Worksheets.Add before:=wb.Worksheets(1)
    Set ws = ActiveSheet
    '-------------------------------------------------------------------------
    '- get the links
    MyLinks = ActiveWorkbook.LinkSources(xlExcelLinks)
    If IsEmpty(MyLinks) Then
        MsgBox ("No links")
    Else
        '---------------------------------------------------------------------
        '- loop to check links
        For ToRow = 1 To UBound(MyLinks)
            MyLink = MyLinks(ToRow)
            ws.Cells(ToRow, 1).Value = MyLink
            MyCheck = Dir(MyLink)
            ws.Cells(ToRow, 2).Value = IIf(MyCheck = "", "GONE", "OK")
        Next
        '---------------------------------------------------------------------
    End If
End Sub
'============================================================================
 
Upvote 0

Forum statistics

Threads
1,222,115
Messages
6,164,014
Members
451,867
Latest member
csktwyr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top