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

¨D§U·Ó¤ù±Æ¦C°ÝÃD

¨D§U·Ó¤ù±Æ¦C°ÝÃD

¤p§Ì½m²ß±Æ¦C´¡¤J¹Ï¤ù.µ²ªG¹Ï¤ù¨S¦³®×¨ì§Ú·Q­n¦ì¸m±Æ¦C   
¦C¦p 200917-14   ³o±i¹Ï §Ú­n±Æ¦b A17 ³o¦s®æ¤º

©l²×³£¶]¨ì§OÃä~
¬O§_¦³¤j¤j¥i¥HÀ°¦£ À°§Ú¬Ý¤@¤U ¬O­þÃä¼g¿ù

ªþ¤WÀÉ®×

·PÁ¦U¦ì¤j¤j

·Ó¤ù±Æ¦C.rar (804.19 KB)

·Ó¤ùÀÉ®×

  1. Sub zz()
  2. Dim p, pic, pn$, Newpic As Object, k
  3. With Application.FileDialog(msoFileDialogFolderPicker)
  4.     .Title = "Select the images folder"
  5.     .Show
  6.     If .SelectedItems.Count Then p = .SelectedItems(1) & "\" Else Exit Sub
  7. End With
  8. Sheets(2).Activate
  9. pic = Dir(p & "*.jpg")
  10. Do While Len(pic) > 0
  11.     pn = Mid(Split(pic, ".")(0), 3)
  12.     k = Split(pn, "-")
  13.     pn = Format(k(0), "0000") & "-" & k(1)
  14.     Set Rng = Cells.Find(pn)
  15.     If Rng Is Nothing Then MsgBox "No picture " & pic: GoTo 1000
  16.     Set Rng = Range(Rng.MergeArea.Address)
  17.     For Each op In ActiveSheet.Pictures
  18.         If Not Application.Intersect(Rng, op.TopLeftCell) Is Nothing Then op.Delete
  19.     Next
  20.     Set Newpic = ActiveSheet.Pictures.Insert(p & pic)
  21.     With Newpic
  22.         .ShapeRange.LockAspectRatio = msoFalse
  23.         .Top = Rng.Top
  24.         .Left = Rng.Left
  25.         .Height = Rng.Height
  26.         .Width = Rng.Width
  27.     End With
  28. 1000
  29. pic = Dir
  30. Loop
  31. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# ikboy


    ÁÂÁ¤j¤j¤À¨É  §Úª¾¹D°ÝÃD©Ò¦b¤F ·P®¦

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD