Sub Edition_PdF()
'
Columns("N:AE").Select
Range("N2").Activate
Selection.EntireColumn.Hidden = True
Application.ActivePrinter = "PDFCreator sur Ne00:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"PDFCreator sur Ne01:", Collate:=True
Columns("N:AE").Select
Range("N2").Activate
Selection.EntireColumn.Hidden = False
'
End Sub
Sub Impression_PDF()
Dim no_app As String
Dim design As String
Dim nom As String
Dim n As Integer
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:=Imprimante_AdobePDF, Collate:=True
Application.OnTime Now + TimeValue("00:00:03"), "Attente"
End Sub
Sub Attente()
Dim nom As String
nom = Range("S4").Value & "_" & Range("T4").Value
SendKeys ("{ENTER}"), [ True]
SendKeys (nom), [ True]
Application.OnTime Now + TimeValue("00:00:03"), "AttenteBis"
End Sub
Sub AttenteBis()
Dim date_propo As String
Dim no_app As String
Dim rep As String
Dim nom As String
nom = Range("S4").Value & "_" & Range("T4").Value
rep = "Y:\TKAF\R01\A427\_Commun-Agence\GENERAL\Outils de Suivi SAV-Modernisation\Suivi clients\Pas de calais Habitat\" & nom
SendKeys (rep), [ True]
SendKeys ("{ENTER}"), [ True]
End Sub
Private Function Imprimante_AdobePDF() As String
Dim i As Integer
Dim NomPortReseau As String
For i = 0 To 99
If i < 10 Then
NomPortReseau = "PDFCreator sur Ne0" & i & ":"
Else
NomPortReseau = "PDFCreator sur Ne" & i & ":"
End If
On Error Resume Next
Application.ActivePrinter = NomPortReseau
If ActivePrinter = NomPortReseau Then
Exit For
End If
Next i
Imprimante_AdobePDF = NomPortReseau
End Function