¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
³o¬O¥i¥H±NÀÉ®× §Ö³t©ñ¸m©Ònªº¥Ø¿ý©³¤U
¦pªG¸ê®Æ«Ü¦h ¤â°Ê¥h·h²¾ªº¸Ü ·|¤âµm
¬G¥H¦¹¨Ó°µÂ²³æ³]©w«á ÅýÀɮצ^¨ì¸Ó¦^¥hªº¦a¤è
¦p¡G
D:\¤å¥ó\***-¤å¥ó¹ÏÀÉ.jpg n©ñ¦b ***¸ê®Æ§¨©³¤Uªº EXCELÀÉ®×
AAA-¤å¥ó¹ÏÀÉ.jpg ·h²¾¨ì AAA\EXCEL\AAA-¤å¥ó¹ÏÀÉ.JPG
¨Ï¥Î¤è¦¡¡G
AÄæ¦ì¿é¤J·Qn©ñ¸mªº¸ê®Æ§¨¦WºÙ
¥B ¸Ó¸ò¥Ø¿ý¤U©ñ¸m·Q·h²¾ªºÀÉ®×
°õ¦æµ{¦¡½X§Y¥i
µ{¦¡½X¦p¤U- Sub test()
- Dim objFs As Object
- Set objFs = CreateObject("Scripting.FileSystemObject")
- MkDir "D:\¤å¥ó\" & Range("a" & wi).Value & "\" & "Excel" '¦bAÄæ¦ì¸ê®Æ§¨¤º³Ð¥ß EXCEL¸ê®Æ§¨
- MkDir "D:\¤å¥ó\" & Range("a" & wi).Value & "\" & "¹Ï¤ù¦s©ñ°Ï" '¦bAÄæ¦ì¸ê®Æ§¨¤º³Ð¥ß ¹Ï¤ù¦s©ñ°Ï¸ê®Æ§¨
- Columns("H:H").Select
- Selection.NumberFormatLocal = "@" '¤å¦r«¬ºA
- Columns("t:t").Select
- Selection.NumberFormatLocal = "@" '¤å¦r«¬ºA
- Range("h1").Value = Right(Range("e1").Value, 4)
- For xi = 1 To 999
- If Range("a" & xi).Value <> "" Then
- xy = xi
- End If
- Next
- For xt = 1 To xy
- xo = Range("j" & xt).Value
- Columns("H:H").Select
- Selection.NumberFormatLocal = "@"
- Range("h" & xt).Value = Right(Range("e" & xt).Value, 4)
-
- For xuo = 1 To 999
- If Dir("D:\¤å¥ó\" & Range("e" & xuo).Value & "-¤å¥ó¹ÏÀÉ.jpg") <> "" Then
- objFs.moveFile "D:\¤å¥ó\" & Range("e" & xuo).Value & "-¤å¥ó¹ÏÀÉ.jpg", "D:\¤å¥ó\" & Range("a" & xuo).Value & "\excel\"
- End If
- Next xuo
- For xww = 1 To 999
- If Dir("D:\¤å¥ó\" & Range("a" & xt).Value & Range("h" & xww).Value & ".jpg") <> "" Then
- objFs.moveFile "D:\¤å¥ó\" & Range("a" & xt).Value & Range("h" & xww).Value & ".jpg", "D:\¤å¥ó\" & Range("a" & xt).Value & "\¹Ï¤ù¦s©ñ\"
- End If
- Next xww
- Next xt
- End Sub
½Æ»s¥N½X |
|