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

[µo°Ý] ½Ð±Ð¦p¦ó¶}±Ò¸ê®Æ§¨¤¤ªºÀɮשO¡H

¦^´_ 1# z71078170
  1. Sub Test()
  2.     Dim oFS As Object, oFD As Object
  3.     Dim newFile As String, newDate As Date
  4.    
  5.     Set oFS = CreateObject("Scripting.FileSystemObject")
  6.     Set oFD = oFS.GetFolder("C:\¸ê®Æ§¨¸ô®|")
  7.    
  8.     For Each x In oFD.Files
  9.         If x.DateCreated > newDate Then
  10.             newDate = x.DateCreated
  11.             newFile = x.Path
  12.         End If
  13.     Next
  14.     Workbooks.Open newFile
  15. End Sub
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

        ÀR«ä¦Û¦b : ¦³¤ß´N¦³ºÖ¡A¦³Ä@´N¦³¤O¡A¦Û³yºÖ¥Ð¡A¦Û±oºÖ½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD