ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¤@­Ó¤u§@ªí«ö±ø¥ó¦s¬°¤£¦PPDF

¦^´_ 5# missbb


         If Dir("D:\" & ky & "201507.pdf") <> "" Then Kill "D:\" & ky & "201507.pdf"  '¦P¦WÀɮקR°£
     .ExportAsFixedFormat Type:=xlTypePDF, Filename:= _

        "D:\" & ky & "201507.pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, _
        IgnorePrintAreas:=False, OpenAfterPublish:=True  '¥t¦s¦¨PDFÀÉ®×
Next

TOP

¦^´_ 8# missbb
  1. Sub ex()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. With ActiveSheet
  4. For Each a In .Range(.[E4], .[E4].End(xlDown))
  5.   d(a.Value) = ""         '¨ú±o©Ò¦³¤£­«½Æ¤À©±
  6. Next
  7. For Each ky In d.keys
  8.      .Range("B4").AutoFilter field:=4, Criteria1:=ky
  9.      If Dir("D:\" & ky & "201507.pdf") <> "" Then Kill "D:\" & ky & "201507.pdf"  '¦P¦WÀɮקR°£
  10.      .ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
  11.         "D:\" & ky & "201507.pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, _
  12.         IgnorePrintAreas:=False, OpenAfterPublish:=True  '¥t¦s¦¨PDFÀÉ®×
  13. Next
  14. If .FilterMode = True Then .ShowAllData 'Åã¥Ü©Ò¦³¸ê®Æ
  15. End With
  16. End Sub
½Æ»s¥N½X

TOP

¦^´_ 10# missbb


    ¥ý¦bEXCEL³]©w¦n¤ñ¸û§Ö,¤W¤è ¡iª©­±°t¸m¡j¥i½Õ¾ã

TOP

        ÀR«ä¦Û¦b : §g¤l¬°¥Ø¼Ð¡A¤p¤H¬°¥Øªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD