...& ".pdf"
' Eğer aynı isimde bir dosya yoksa PDF olarak kaydet
If Dir(dosyaAdi) = "" Then
ThisWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:=dosyaAdi, Quality:=xlQualityStandard
MsgBox "Fatura PDF olarak kaydedildi.", vbInformation
Else
MsgBox...
...rng = ws.Range("B2:S46")
ElseIf ws.Name = "Fazla Mesai" Then
Set rng = ws.Range("B2:S47")
End If
If Not rng Is Nothing Then
ws.ExportAsFixedFormat Type:=xlTypePDF, _
fileName:=folderPath & "\" & fileName & "_" & ws.Name & ".pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _...
...Set rng = ws.Range("B2:S47")
End If
If Not rng Is Nothing Then
ws.ExportAsFixedFormat Type:=xlTypePDF, _
fileName:=folderPath & "\" & fileName & "_" & ws.Name & ".pdf", _...
...değişmesini burada yapacaksınız
Next i
Application.DisplayAlerts = False
wb.Worksheets(1).Delete
Application.DisplayAlerts = True
wb.ExportAsFixedFormat Type:=xlTypePDF, Filename:="Egitim_Belgesi.pdf", OpenAfterPublish:=False
wb.Close SaveChanges:=False
Application.ScreenUpdating = True
End Sub
Öncelikle ilgilendiğiniz için teşekkür ederim. Ben bunu yaptım ama olmadı. Ben beceremedim büyük bir ihtimal, dosyaları ekledim üzerinde uygulayabilir misiniz?
Dosyalar
...= ActiveDocument
Rem buradaki ("Borçlu") kelimesi yerine sizin exceldeki "kişi adı alanı" neyse o yazılacak.
singleDoc.ExportAsFixedFormat _
OutputFileName:=PdfFolderPath & Application.PathSeparator & _...
...'Burayı siz kendi bilgisayarınızdaki masa üstüne göre değiştirin
fileName = currentDate & ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, fileName:=fileName, Quality:=xlQualityStandard
MsgBox "PDF dosyası başarıyla oluşturuldu: " & fileName, vbInformation
End Sub
...dönüştürülmüş hali bulunmaktadır."
' Sayfa PDF'e dönüştürme işlemi
On Error Resume Next
Sheets(sheetName).ExportAsFixedFormat Type:=xlTypePDF, Filename:=pdfPath
On Error GoTo 0
If Err.Number <> 0 Then
MsgBox "PDF oluşturma hatası: " & Err.Description...
Sizlere daha iyi bir deneyim sunabilmek icin sitemizde çerez konumlandırmaktayız, web sitemizi kullanmaya devam ettiğinizde çerezler ile toplanan kişisel verileriniz Veri Politikamız / Bilgilendirmelerimizde belirtilen amaçlar ve yöntemlerle mevzuatına uygun olarak kullanılacaktır.