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

­«·s½s¸¹

¦^´_ 1# myleoyes
  1. Sub changeindex()
  2. Dim mydic As Object
  3. Dim mycell As range
  4. Dim i As Integer

  5. Set mydic = CreateObject("scripting.dictionary")

  6. For Each mycell In range([c153], [c153].End(xlToRight))

  7. If mydic.exists(mycell.Value) Then
  8. mycell.Value = mydic(mycell.Value)
  9. Else
  10. i = i + 1
  11. mydic(mycell.Value) = i
  12. mycell.Value = mydic(mycell.Value)
  13. End If
  14. Next

  15. Set mydic = Nothing

  16. End Sub
½Æ»s¥N½X
²{¦b­n²z¸Ñµo°ÝªÌªº·N«ä,¤ñ¼gµ{¦¡§ó§xÃø
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD