Test deze eerst maar is om pdf's te maken van elke sheet in je bestand
Sub Copy_Every_Sheet_To_PDF()
Dim FileExtStr As String
Dim FileFormatNum As Long
Dim Sourcewb As Workbook
Dim sh As Worksheet
Dim DateString As String
Dim FolderName As String
With Application
.ScreenUpdating = False
.EnableEvents = False
.Calculation = xlCalculationManual
End With
'Copy every sheet from the workbook with this macro
Set Sourcewb = ThisWorkbook
'Create new folder to save the new files in
DateString = Format(Now, "yyyy-mm-dd hh-mm-ss")
FolderName = Sourcewb.Path & "" & Sourcewb.Name & " " & DateString
MkDir FolderName
'Publish every visible worksheet with data
For Each sh In Sourcewb.Worksheets
'If the sheet is visible then copy it to a new workbook
If sh.Visible = -1 And sh.UsedRange.Cells.Count > 1 Then
'Publish worksheet to pdf
On Error Resume Next
sh.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=FolderName _
& "" & sh.Name & ".pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
On Error GoTo 0
End If
GoToNextSheet:
Next sh
MsgBox "You can find the files in " & FolderName
With Application
.ScreenUpdating = True
.EnableEvents = True
.Calculation = xlCalculationAutomatic
End With
End Sub
--
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
"Ron de Bruin" <*** E-mailadres is om privacyredenen verwijderd ***> wrote in message news:*** E-mailadres is om privacyredenen verwijderd ***...
Zal vanavond een voorbeeld in deze thread zetten
--
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
"Miriam85" wrote in message news:*** E-mailadres is om privacyredenen verwijderd ***...
Dit lijkt me zeker wat! Wanneer je het aan zou willen passen dan zou ik daar blij mee zijn!