- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 254
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 2# missbb
2007ª©¬O§_¤w¦³¥t¦s¦¨PDFÀÉ¥\¯à?
¥H¤U¦b2010ª©¥»¥i¦æ- Sub ex()
- Set d = CreateObject("Scripting.Dictionary")
- With ActiveSheet
- For Each a In .Range(.[E4], .[E4].End(xlDown))
- d(a.Value) = "" '¨ú±o©Ò¦³¤£«½Æ¤À©±
- Next
- For Each ky In d.keys
- .Range("B4").AutoFilter field:=4, Criteria1:=ky
- If Dir("D:\" & ky & ".pdf") <> "" Then Kill "D:\" & ky & ".pdf" '¦P¦WÀɮקR°£
- .ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
- "D:\" & ky & ".pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, _
- IgnorePrintAreas:=False, OpenAfterPublish:=True '¥t¦s¦¨PDFÀÉ®×
- Next
- If .FilterMode = True Then .ShowAllData 'Åã¥Ü©Ò¦³¸ê®Æ
- End With
- End Sub
½Æ»s¥N½X |
|