![]() |
|
Forum
|
|
|
#1 (permalink) |
|
XLDnaute Occasionel
|
Bonjour à tous
J'ai un suivi fait avec excel tous les documents sont enregistre au format pdf avec PDF creator Est il possible à partir du fichier suivi à l'aide d'un bouton appeller une fenetre ecrire le N° du PDF et l'ouvrir ( AB 1) Merci |
|
|
|
| ANNONCES | |||
|
|
|
|
#6 (permalink) |
|
XLDnaute Impliqué
Date d'inscription: mai 2006
Localisation: Saint Thois
Messages: 885
|
re,
Code:
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Option Explicit
Sub btnOpen_QuandClic()
Dim Ret As Long, hwnd As Long
Dim sChemin As String
sChemin = ThisWorkbook.Path
With Application.FileDialog(msoFileDialogFilePicker)
.InitialFileName = sChemin & "\"
.Title = ""
.AllowMultiSelect = False
.InitialView = msoFileDialogViewDetails
.ButtonName = "Sélection Fichier"
.Filters.Add "Fichiers PDF", "*.pdf"
.Show
If .SelectedItems.Count > 0 Then Ret = ShellExecute(hwnd, "Open", .SelectedItems(1), 0&, 0&, 1)
End With
End Sub
|
|
|
|
| ANNONCES | |
![]() |
| Liens sociaux |
| Outils de la discussion | |
|
|
Discussions similaires
|
||||
| Discussion | Auteur | Forum | Réponses | Dernier message |
| créé avec excel 2000 ouvrir avec 2003 | Mavlyn | Forum Excel | 0 | 13/09/2007 15h18 |
| ouvrir word avec excel | olivier | Forum Excel Downloads - Archives | 1 | 14/02/2005 18h31 |
| ouvrir un csv avec excel | fluff | Forum Excel Downloads - Archives | 5 | 12/10/2004 00h19 |
| Ouvrir une application avec Excel | Le rital | Forum Excel Downloads - Archives | 4 | 01/12/2003 19h37 |
| Ouvrir fichier .db avec Excel | CALVINHAC | Forum Excel Downloads - Archives | 3 | 03/06/2003 13h55 |