2016-09-27 38 views

回答

1

我不確定Mac PPT是否支持Windows版本的無路徑或相對鏈接; ISTR,它沒有。但是如果你想測試,這裏有一些可以讓你編輯鏈接的VBA。它適用於Windows,但是我已經編輯了一些可能導致它在Mac上失敗的位;它也應該在那裏工作。

在編輯鏈接將其指向其他位置之前,您必須確保鏈接文件已經在您說的位置;否則,PPT就會忽略你。沒有錯誤消息,但沒有任何變化。

Sub EditLink() 
' Edit links of some types 
' Little error checking. It works or not. No harm if not. 

    Dim sLinkSource As String 
    Dim sOriginalLinkSource As String 

    If ActiveWindow.Selection.ShapeRange.Count <> 1 Then 
     MsgBox ("Please select one and only one shape, then try again.") 
     Exit Sub 
    End If 

    With ActiveWindow.Selection.ShapeRange(1) 
     'MsgBox .LinkFormat.SourceFullName 
     sOriginalLinkSource = .LinkFormat.SourceFullName 
     sLinkSource = InputBox("Edit the link", "Link Editor", sOriginalLinkSource) 

     If sLinkSource = sOriginalLinkSource Then 
      ' nothing changed; our work on this planet is done 
      Exit Sub 
     End If 
     If sLinkSource = "" Then 
      ' The user canceled; quit: 
      Exit Sub 
     End If 


    End With 

End Sub 
+0

謝謝,但它似乎沒有工作。可能是我應該嘗試獲得新的Office版本,看起來它提供了有關添加超鏈接的更多選項。 – user3290439

+1

我會問各地Mac Office的具體論壇,看看你是否可以得到一個明確的答案,關於Mac Office 2016是否支持無路徑或相對路徑的鏈接之前花錢。 –

相關問題