Ok, I found it !
simpely put the code MsgBox
Private Sub OpslaanAlsPDF_click()
' OpslaanNaarPDF Macro
Dim Oobj As OLEObject, obj As Object, FilePath As String, FileExists As String
Blad4.Shapes.Range(Array("Object 10")).Select '' AANPASSEN indien nodig - Blad (hier Blad4) en object (hier Object 10)
'Selection.Verb Verb:=xlOpen
FilePath = "C:\JVC\HHR.pdf" ''AANPASSEN indien nodig
Set Oobj = Selection
Oobj.Activate
Blad4.Activate ''AANPASSEN indien nodig - Blad (hier Blad4)
Blad4.Cells(1, 1).Select ''AANPASSEN indien nodig - Blad (hier Blad4)
Set obj = Oobj.Object
FileExists = Dir(FilePath)
If FileExists <> "" Then
FilePath = InputBox("Geef naam/adres in die je wilt gebruiken", "Opgelet bestand bestaat al", FilePath)
End If
If FilePath = vbNullString Then Exit Sub
obj.SaveAs FilePath, 17 ''17=PDF
MsgBox "Saved succesfully !"
End Sub
Bookmarks