DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Dikdörtgen4_Tıklat()
On Error Resume Next
dosya_adı = Trim(Cells(1, "z").Value) & " Sipariş Formu"
If dosya_adı = "" Then
MsgBox "Dosya adı yok"
Exit Sub
End If
a = MsgBox(" Kayıt etmek istiyormusunuz.?", vbYesNo + vbInformation, " Uyarı")
If a = vbYes Then
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
[COLOR="Red"][B]"C:\Users\BZACE\Desktop\"[/B][/COLOR] & dosya_adı, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
MsgBox "işlem tamam!"
End If
If a = vbNo Then
MsgBox "işlemi iptal ettiniz.!"
End If
End Sub
. . .word dosyası için makro varmı
Sub makro()
yol = ActiveDocument.Path
isim = ActiveDocument.Name
ActiveDocument.ExportAsFixedFormat _
OutputFileName:=yol & "\" & isim & ".pdf", _
ExportFormat:=wdExportFormatPDF
End Sub