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

[µo°Ý] ½Ð°Ý¦p¦ó¦b"¤å¦r¤è¶ô"¿é¤J±ø¥ó«á¦A¥h·j´M¸ê®Æ

[µo°Ý] ½Ð°Ý¦p¦ó¦b"¤å¦r¤è¶ô"¿é¤J±ø¥ó«á¦A¥h·j´M¸ê®Æ

½Ð°Ý­n¦p¦ó¼g¤~¯à¹F¨ì§Ú­nªº®ÄªG?

1. §Ú·Q­n¦b¥H¤U¸ô®|·j´M§Ú­nªº¸ê®Æ¡@\\D1502111\¼È¦s°Ï\
¡@¦ý¸ê®Æ§¨¦³´X¤d­Ó¡A¬G§Ú¥Î¤F¡i¤å¦r¤è¶ô1¡j»P¡i¤å¦r¤è¶ô2¡j¡i¤å¦r¤è¶ô3¡jÅý¨Ï¥ÎªÌ¥i¥H¦Û¦æ¿é¤J±ø¥ó

2.§Æ±æ¥i¥H¹F¨ì«ü©w¸ô®|¡G\\D1502111\¼È¦s°Ï\¸ê®Æ§¨¤@(¤å¦r¤è¶ô¤º®e1)\¸ê®Æ§¨¤G(¤å¦r¤è¶ô¤º®e2)\

3.«ö°õ¦æ«á¡A¥i¥H¨Ì¡i·j´MªºÃöÁä¦r(¤å¦r¤è¶ô¤º®e3)¡j¥h·j´M¡A
¡@D¼Ñ©³¤U¦Û°Ê«Ø¥ß¤@­Ó¸ê®Æ§¨¨Ì¡i·j´MªºÃöÁä¦r(¤å¦r¤è¶ô¤º®e3)¡j¬°©R¦W¤è¦¡¡A
¡@¨Ã±N·j´M¨ìªº¡A¥þ³¡Àɮ׽ƻs¨ìD¼Ñ©³¤U¦Û°Ê³Ð«Øªº¸ê®Æ§¨¡C

³Â·Ð¦U¦ì°ª¤âÀ°À°§Ú¤F¡AÁÂÁ¡ã

¦U¦¡¤u§@¬yµ{.rar (12.58 KB)

§Ú«Ü²Â,©Ò¥H§Ú«Ü¥Î¤ß
¡@§Ú¾ÇÃÀ¤£ºë,¦ý§Ú´÷¨Dª¾ÃÑ

¦^´_ 16# GBKEE


Dear  GBKEE ª©¥D¤j¤j¡G
¡@¡@¡@¥i¥H¤FÁÂÁ±z²Ó¤ßÁ¿¸Ñ¡A²×©ó«ö·Ó±zªº»¡©ú§¹¦¨¤F¡AÁÂÁ±z¡ã
§Ú«Ü²Â,©Ò¥H§Ú«Ü¥Î¤ß
¡@§Ú¾ÇÃÀ¤£ºë,¦ý§Ú´÷¨Dª¾ÃÑ

TOP

¦^´_ 15# »k¥ú°j¯T
  1. Option Explicit
  2. Sub Ex()
  3.     Dim gb As String
  4.     gb = "D:\ÃöÁä¦r"  '¦sÀɦì¸m
  5.     Shell "explorer  " & gb, vbMaximizedFocus
  6.     '"explorer  "ªÅ¤@®æ + (³s±µ¤W)­n¶}±Òªº¸ê®Æ§¨ ©Î ÀÉ®×
  7.     '°Ñ¼Æ:vbMaximizedFocus,½Ð°Ñ¦Ò Shell ¨ç¼Æªº»¡©ú
  8. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 14# GBKEE


Dear GBKEE ª©¥D¡G

¡@¤£ª¾¹D¬O¤£¬O§Úªº°ÝÃD¡D2ºØ³£¤£¬O§Ú­nªº®ÄªG¡A

¡@§Ú­nªº¬Oµ{¦¡°õ¦æ¥þ³¡¶]§¹«á¡A·|¸õ¥X gb = "D:\" & ML3 & "\" '¦sÀɦì¸m

¡@³o¤@¦æªº¸ê®Æ§¨¡A¦ý¤@ª½·Q¤£¥X¨Ó«ç»ò¼g¡H

¡@³Ò·Ð¤j¤j±z¤F¡AÁÂÁ±z¡ã

123.JPG (53.87 KB)

123.JPG

§Ú«Ü²Â,©Ò¥H§Ú«Ü¥Î¤ß
¡@§Ú¾ÇÃÀ¤£ºë,¦ý§Ú´÷¨Dª¾ÃÑ

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-10-3 19:33 ½s¿è

¦^´_ 13# »k¥ú°j¯T
¬O³o¼Ë¶Ü?
  1. '//**********************************//
  2.     ChDir gb   '§ïÅܥثeªº¥Ø¿ý©ÎÀɮק¨
  3.     With Application.FileDialog(msoFileDialogFilePicker)
  4.         .Show
  5.     End With
  6.    '//**********************************//
½Æ»s¥N½X
ÁÙ¬O¦p¦¹
  1. '//**********************************//
  2.     Dim e As Variant
  3.     ChDir gb   '§ïÅܥثeªº¥Ø¿ý©ÎÀɮק¨
  4.     With Application.FileDialog(msoFileDialogFilePicker)
  5.         If .Show = True Then
  6.             For Each e In .SelectedItems
  7.                 Workbooks.Open e
  8.             Next
  9.         End If
  10.     End With
  11.    '//**********************************//
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 12# GBKEE


Dear  GBKEE ª©¥D¤j¤j¡G

¡@¥´ºâ¦b¥H¤Uµ{¦¡°õ¦æ§¹«á¡A¦Û°Ê±a¥X¦Û³Ð¸ê®Æ§¨

¡@
  1. Option Explicit
  2. '¼Ò²Õ¤WºÝªº Dim («Å§iÅܼƬ°³o¼Ò²Õªº¨p¥ÎÅܼÆ),¶È³o¼Ò²Õªºµ{§Ç¥i¨Ï¥Î
  3. Dim gb As String, fsd As Object, ML3 As String


  4. Private Sub CommandButton1_Click()

  5. Dim fd As String, dm As String, ML1 As String, ML2 As String
  6. 'µ{§Ç¤¤ªº Dim («Å§iÅܼƬ°³oµ{§Çªº¨p¥ÎÅܼÆ,¶È³oµ{§Ç¤¤¥i¨Ï¥Î)

  7. dm = "D:\´ú¸Õ¥Î\" '·j´M¥D¸ô®|
  8. ML1 = Range("E3") '·j´MÀɮ׸ê®Æ§¨¥Ø¿ý¤@
  9. ML2 = Range("E5") '·j´MÀɮ׸ê®Æ§¨¥Ø¿ý¤G
  10. ML3 = Range("E7") '·j´MÀÉ®×ÃöÁä¦r
  11. gb = "D:\" & ML3 & "\" '¦sÀɦì¸m

  12. Set fsd = CreateObject("Scripting.FileSystemObject")
  13. fd = dm & ML1 & "\" & ML2 & "\" 'Àɮ׸ê®Æ§¨¦ì¸m
  14. If fsd.folderexists(gb) = False Then fsd.createfolder gb '¦Û³Ð¸ê®Æ§¨¤£¦s¦b«h«Ø¥ß
  15. °Æµ{¦¡ fd
  16. End Sub

  17. Private Sub °Æµ{¦¡(¸ê®Æ§¨ As String)
  18. Dim F As Object
  19. Debug.Print ¸ê®Æ§¨ '¥i¬Ý¤@¤U ¤l¸ê®Æ§¨¦WºÙ
  20. If Dir(¸ê®Æ§¨ & "\*" & ML3 & "*") <> "" Then '´ú¸ÕÃöÁä¦rÀɦW¬O§_¦s¦b
  21. fsd.copyfile ¸ê®Æ§¨ & "\*" & ML3 & "*", gb
  22. End If
  23. '*** ¦p¸ê®Æ§¨¤U¦³¤l¸ê®Æ§¨ ¦A©I¥s³o°Æ.µ{¦¡ ***
  24. '©I¥s µ{¦¡ªº°j°é
  25. For Each F In fsd.GetFolder(¸ê®Æ§¨).SUBFolderS
  26. °Æµ{¦¡ F & ""
  27. Next
  28. End Sub
½Æ»s¥N½X

¼Ë¥».rar (11.8 KB)

§Ú«Ü²Â,©Ò¥H§Ú«Ü¥Î¤ß
¡@§Ú¾ÇÃÀ¤£ºë,¦ý§Ú´÷¨Dª¾ÃÑ

TOP

¦^´_ 11# »k¥ú°j¯T


   
¦ý¤£ª¾¹D«ç»ò¹B¥Î
§A­n°µ¦ó¨Æ?
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 9# GBKEE


Dear  GBKEE ª©¥D¤j¤j¡G

¡@¦A½Ð°Ý¤@¥ó¨Æ±¡¡G³Ì«á«ç»ò¦Û°Ê¶}啓³o­Ó¸ê®Æ§¨?
  1. gb = "D:\" & ML3 & "\" '¦sÀɦì¸m
½Æ»s¥N½X
   


¡@ª¦¤å«á¡A¥uª¾¹D¤U­±³o¦æµ{¦¡¡G
  Shell "explorer D:\´ú¸Õ¥Î\"  '³æ¯Â¥´¶}¸ê®Æ§¨
  Workbooks.Open ("D:\´ú¸Õ¥Î\·j´MÃöÁä¦r.xls")  '³æ¯Â¥´¶}ÀÉ®×

¡@¦ý¤£ª¾¹D«ç»ò¹B¥Î
§Ú«Ü²Â,©Ò¥H§Ú«Ü¥Î¤ß
¡@§Ú¾ÇÃÀ¤£ºë,¦ý§Ú´÷¨Dª¾ÃÑ

TOP

¦^´_ 9# GBKEE


Dear  GBKEE ª©¥D¤j¤j¡G

¡@ÁÂÁ±z¶O¤ßÀ°¦£¡A¦hÁ« GBKEE §A »P Hsieh ¤j¤j¡A¹©¤O¬Û§U¡A¦A¦¸ÁÂÁ±z­Ì¤F¡ã

4.gif (3.65 KB)

4.gif

§Ú«Ü²Â,©Ò¥H§Ú«Ü¥Î¤ß
¡@§Ú¾ÇÃÀ¤£ºë,¦ý§Ú´÷¨Dª¾ÃÑ

TOP

¦^´_ 8# »k¥ú°j¯T
   
3. ¦³­Ó¦a¤è¤£©ú¥Õ¡A°õ¦æ«á¨Ã¤£·|¨ÌÃöÁä¦r¥h½Æ»sÀɮסA¤Ï¦Ó½Æ»s¸ê®Æ§¨©³¤U¥þ³¡ªºÀɮסC
  1. 10.fs = Dir(fd & "*" & ML3 & "*") '´ú¸ÕÃöÁä¦rÀɦW¬O§_¦s¦b
  2. 11.  If fs <> "" Then    '³o¸Ì§PÂ_¦³ÃöÁä¦rÀɦWªºÀÉ®×
  3. '*** ¤£·|½Æ»s¸ê®Æ§¨©³¤U¥þ³¡ªºÀÉ®× ****
½Æ»s¥N½X
ML3 = Range("E7") '·j´MÀÉ®×ÃöÁä¦r
·|¬ORange("E7")¤¤¨S¦³¦r¦ê,???³y¦¨ªº¶Ü?
  1. Option Explicit
  2. '¼Ò²Õ¤WºÝªº Dim («Å§iÅܼƬ°³o¼Ò²Õªº¨p¥ÎÅܼÆ),¶È³o¼Ò²Õªºµ{§Ç¥i¨Ï¥Î
  3. Dim gb As String, fsd As Object, ML3 As String
  4. Private Sub CommandButton1_Click()
  5. 'µ{§Ç¤¤ªº Dim («Å§iÅܼƬ°³oµ{§Çªº¨p¥ÎÅܼÆ,¶È³oµ{§Ç¤¤¥i¨Ï¥Î)
  6. Dim fd As String, dm As String, ML1 As String, ML2 As String
  7.     dm = "D:\´ú¸Õ¥Î\" '·j´M¥D¸ô®|
  8.     ML1 = Range("E3") '·j´MÀɮ׸ê®Æ§¨¥Ø¿ý¤@
  9.     ML2 = Range("E5") '·j´MÀɮ׸ê®Æ§¨¥Ø¿ý¤G
  10.     ML3 = Range("E7") '·j´MÀÉ®×ÃöÁä¦r
  11.     gb = "D:\" & ML3 & "\" '¦sÀɦì¸m
  12.     Set fsd = CreateObject("Scripting.FileSystemObject")
  13.     fd = dm & ML1 & "\" & ML2 & "\" 'Àɮ׸ê®Æ§¨¦ì¸m
  14.     If fsd.folderexists(gb) = False Then fsd.createfolder gb '¦Û³Ð¸ê®Æ§¨¤£¦s¦b«h«Ø¥ß
  15.     °Æµ{¦¡ fd
  16. End Sub
  17. Private Sub °Æµ{¦¡(¸ê®Æ§¨ As String)
  18.     Dim F As Object
  19.     Debug.Print ¸ê®Æ§¨  '¥i¬Ý¤@¤U ¤l¸ê®Æ§¨¦WºÙ
  20.     If Dir(¸ê®Æ§¨ & "\*" & ML3 & "*") <> "" Then '´ú¸ÕÃöÁä¦rÀɦW¬O§_¦s¦b
  21.         fsd.copyfile ¸ê®Æ§¨ & "\*" & ML3 & "*", gb
  22.     End If
  23.     '*** ¦p¸ê®Æ§¨¤U¦³¤l¸ê®Æ§¨ ¦A©I¥s³o°Æ.µ{¦¡ ***
  24.     '©I¥s µ{¦¡ªº°j°é
  25.     For Each F In fsd.GetFolder(¸ê®Æ§¨).SUBFolderS
  26.         °Æµ{¦¡ F & ""
  27.     Next
  28. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : «Î¼e¤£¦p¤ß¼e¡C
ªð¦^¦Cªí ¤W¤@¥DÃD