- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-24
|
¦^´_ 1# PJChen
¸Õ¸Õ¬Ý- Sub Ex()
- Set fdo = CreateObject("Scripting.FilesystemObject")
- With Workbooks.Open("P:\PJ-Home\NEDoc.xlsx")
- With .Sheets("INV")
- fs = Right(.[S8], 5) & "_" & .[Q8] & "_" & .[I8]
- fd = "P:\Shipping Doc\NE-Logistics\" & fs
- k = fdo.folderexists(fd)
- ar = Split(fd, "\")
- fn = ar(0)
- For i = 1 To UBound(ar)
- fn = fn & "\" & ar(i)
- If fdo.folderexists(fn) = False Then fdo.createfolder fn
- Next
- End With
- .SaveCopyAs fd & "\" & fs & ".xlsx"
- .Close
- End With
- End Sub
½Æ»s¥N½X |
|