Anda di halaman 1dari 1

Sub Dim Dim Dim Dim Dim p =

PDFsalvar() i As Single b As String n As String p As String pdf As String ActiveWorkbook.Path

b = "\" For i = 9 To 400 n = Range("L" & i).Value pdf = replace(n,".xls",".pdf") Workbooks.Open Filename:=p & b & n Workbooks(n).Activate Application.Sheets("165").ExportAsFixedFormat Type:=xlTypePDF, Filename:=p & "\P FD_165\" & pdf Workbooks(n).Save Workbooks(n).Close Workbooks("lista4.2").Activate Next MsgBox "Fim da Operao", vbInformation End Sub

ActiveWorkbook.SaveAs Filename:= _ "C:\Users\alessandro.silva\Desktop\Enlaces Vivo\Modelo_P2.xlsx", FileFor mat:= _ xlOpenXMLWorkbook, CreateBackup:=False Rows("7:7").Select Selection.Delete Shift:=xlUp