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

[µo°Ý] ½Ð°Ý¦p¦ó±N²¾°ÊÀɮתºÀɦW­×§ï¦¨Åª¨úÀx¦s®æ¤º®e©O|?

[µo°Ý] ½Ð°Ý¦p¦ó±N²¾°ÊÀɮתºÀɦW­×§ï¦¨Åª¨úÀx¦s®æ¤º®e©O|?

¥¿±`¹B§@  ²¾°ÊÀÉ®×
  1. Sub movef()
  2.     Set fs = CreateObject("Scripting.FileSystemObject")
  3.     fs.movefile "D:\´ú¸Õ\­ìÀÉ\´ú¸Õ.xls", "D:\´ú¸Õ\¦¨ªG\"
  4. End Sub
½Æ»s¥N½X
´ú¸Õ-±NÀɮצWºÙ³]©w¬°ÅܼƦý³£·|»¡
¿ù»~»¡©ú:§ä¤£¨ìÀÉ®×
  1. Sub movef()
  2.     Set fs = CreateObject("Scripting.FileSystemObject")
  3.     aa = Range("A2").Value
  4.     fs.movefile "D:\´ú¸Õ\­ìÀÉ\&aa&.xls", "D:\´ú¸Õ\¦¨ªG\"
  5. End Sub
½Æ»s¥N½X

¦^´_ 1# starry1314

¤w¸Ñ¨M ¥[¤W.value
­ì¼gªk ¥i¯à¨S¿ìªk¥¿½T©I¥sB3ªº­È§a
¥t·Q½Ð°Ý
aa=Range("B3").Value
­n«ç»ò´À´«¦Ü¬õ¦r³¡¤À©O? ¦]¿é¤Jaa Åܦ¨  aa=µL

Sub ²¾°ÊÀÉ®×()
    Set fs = CreateObject("Scripting.FileSystemObject")
    fs.movefile "D:\´ú¸Õ\­ìÀÉ\" & Range("B3").Value & ".xls*", "D:\´ú¸Õ\¦¨ªG\"
End Sub

TOP

¥¿±`¹B§@  ²¾°ÊÀÉ®×´ú¸Õ-±NÀɮצWºÙ³]©w¬°ÅܼƦý³£·|»¡
¿ù»~»¡©ú:§ä¤£¨ìÀÉ®×
starry1314 µoªí©ó 2015-6-5 23:40


fs.movefile "D:\´ú¸Õ\­ìÀÉ\" & aa & ".xls", "D:\´ú¸Õ\¦¨ªG\"

TOP

¦^´_ 3# luhpro


    ¤F¸Ñ .xls ¥[¤WÂù¤Þ¸¹

TOP

¦^´_ 3# luhpro

½Ð°Ý
         Àx¦s®æU6 ¥Î¨Ó§PÂ_­n¦s¨ì­þ­Ó¸ê®Æ§¨ ¦pA °Ï
        ab = "«È¤á©ú²Ó-«ÈªA±M¥Î.xlsm"
        workbooks.Open ("\\boss-pc\¤½¥Î\" & Range("U6").Value & "°Ï" & "\" & ab & "")

¦ý·|¸õ¥X»¡§ä¤£¨ìÀÉ®×,½T»{¹L¸õ¥X¨Óªº¸ô®|¤ºªº½T¦³ÀÉ®×?

TOP

¦^´_ 3# luhpro

¤w¸Ñ¨M.....ªþÀɦWÁôÂà Åܦ¨  «È¤á©ú²Ó.xlsm.xlsm

TOP

        ÀR«ä¦Û¦b : ºÉ¦h¤Ö¥»¥÷¡A´N±o¦h¤Ö¥»¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD