- Katılım
- 31 Ekim 2011
- Mesajlar
- 17
- Excel Vers. ve Dili
- Microsoft Office Excel 2007
Arkadaşlar Excel dosyalarıma "pdf olarak kaydet ve kapat" butonu eklemek istiyorum. Forumda aşağıdaki kodu buldum ancak bu kod pdf dosyasını excel dosyasının olduğu yere kaydediyor. ben pdf'i başka bir dosya içine kaydetmek ve beraberinde de Excel dosyasını kaydedip kapatmak istiyorum. yardımlarınızı rica ederim.
-----------------------------------
Sub Bilgileri_PDF_Olarak_Kaydet()
dosya_adı = ActiveWorkbook.Name
Range("B2:M41").Select
FS = Sheets("FIF").Range("J3").Value
FIS_NO = Sheets("FIF").Range("K3").Value
strdate = Format(Now, "yyyymmdd")
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
Application.ThisWorkbook.Path & "\" & strdate & " " & FS & FIS_NO & " " & "FASON FİŞİ", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End Sub
------------------------------------------------------------
-----------------------------------
Sub Bilgileri_PDF_Olarak_Kaydet()
dosya_adı = ActiveWorkbook.Name
Range("B2:M41").Select
FS = Sheets("FIF").Range("J3").Value
FIS_NO = Sheets("FIF").Range("K3").Value
strdate = Format(Now, "yyyymmdd")
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
Application.ThisWorkbook.Path & "\" & strdate & " " & FS & FIS_NO & " " & "FASON FİŞİ", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End Sub
------------------------------------------------------------
