اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

قام بنشر
Sub PrintAllFirstPage()
Dim xWs As Worksheet
Set xWs = Sheets("report")
    xWs.PrintOut from:=1, To:=1
End Sub
Sub Export_PDF_in_OneAll()
Application.ScreenUpdating = False
Sheets(Array("Report")).Select
mypath = "D:\USP41 - NF36\" & Range("C8").Value
If Dir(mypath, vbDirectory) = "" Then MkDir mypath
ActiveSheet.Range("A1:D33").ExportAsFixedFormat xlTypePDF, mypath & "\" & Range("p12").Value & ".pdf", xlQualityStandard
Worksheets("Report").Select
Application.ScreenUpdating = True
MsgBox "Done"
End Sub

 

‫‫Daily order - نسخة.xlsm

قام بنشر (معدل)

يمكنك استخدام هذا الكود اخى

Sub towmacro()
Application.ScreenUpdating = False
PrintAllFirstPage
Export_PDF_in_OneAll
Application.ScreenUpdating = True
MsgBox "Done"
End Sub

 

تم تعديل بواسطه abouelhassan
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information