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

[µo°Ý] ¤£ª¾¹D¬O§_¦³¿ìªkÅý¤@¼ËªºÅܦ¨¦P¤@ºØÃC¦â¶Ü??

[µo°Ý] ¤£ª¾¹D¬O§_¦³¿ìªkÅý¤@¼ËªºÅܦ¨¦P¤@ºØÃC¦â¶Ü??

½d¨Ò¹Ï:

¤u³æ¸¹½XªºÄæ¦ì¬O§Ú­Ì¨C¤Ñ¤â°Ê¿é¤Jªº¦a¤è©Ò¥H¤ñ¸û¨S¦³³W«h©Ê
¦Ó§Ú¥D­n¬O§Æ±æ¦³µ{¦¡½X¯à¨Ì·Ó»s«~¦WºÙ¤@¼Ëªº¦Û¦æÅܦ¨¦P¤@ºØÃC¦â¨Ã¥B¦^¶Çµ¹¤u³æ¸¹½XªºÄæ¦ìÅܦ¨¬Û¦PªºÃC¦â
¦]¬°¦³®É¤@¤Ñ·|¥Î¨ì¦h¹F§Ö10ºØÃC¦â  ¥u­n¯à¿ëÃÑ¥X¬Û¦Pªº¤@ºØÃC¦â
¬O§_¯à½Ð¤j¤j¸j¦£ ¦]¬°vba ³o¶ôªF´ê¦è´ê¦n¹³³£°µ¤£¤Ó¥X¨Ó ^^"
¨Ã½Ð¤j¤j¥i§_µy¬°À°§Úµù¸Ñµ{¦¡½Xªº¥Î·N
¦]¬°¥D­n³o¼Ëªí³æ¦n´X¥÷ ¦A¤£¦PÀÉ®×Äæ¦ì¦ì¸m³£¤£¤Ó¤@¼Ë  
³o¼Ë¤ñ¸ûª¾¹D¦p¦ó­×§ï¤]¶¶«K¾Ç²ß  ·P®¦¦U¦ì¤j¤j................

¦^´_ 1# a31075ha
  1. Private Sub cbSetColor_Click()
  2.   Dim iI%
  3.   Dim lRow&
  4.   Dim sStr$
  5.   Dim vColor, vD
  6.   
  7.   Set vD = CreateObject("Scripting.Dictionary")
  8.   vColor = Array(34, 39, 43, 44, 36, 15)
  9.   iI = 0
  10.   lRow = 5
  11.   Do While Cells(lRow, 1) <> ""
  12.     sStr = Cells(lRow, 4)
  13.     If vD(sStr) = "" Then
  14.       vD(sStr) = vColor(iI)
  15.       iI = iI + 1
  16.     End If
  17.     Union(Cells(lRow, 2), Cells(lRow, 4)).Interior.ColorIndex = vD(sStr)
  18.     lRow = lRow + 1
  19.   Loop
  20. End Sub
½Æ»s¥N½X
SameColor-a.zip (10.01 KB)

TOP

¦^´_ 2# luhpro


    ÁÂÁ§A¤j¤j ³Ìªñ°µ³øªí¦hÁ«¤j¤j§AªºÀ°¦£.................

TOP

¦^´_ 2# luhpro

¤j¤j§Ú·Q½Ð°Ý¦pªG¨ä¥LÄæ¦ìÁ`¦@§tÁôÂ꺦@¦³50´XÄæ
¦ý¬O§Ú·Q®Ö¹ïªº¬°²Ä11Äæ µM«á¤@°_Åܦ⪺昰²Ä7Äæ §Ú­×§ï³o¼Ë¹ï¶Ü??
Private Sub cbSetColor_Click()
  Dim iI%
  Dim lRow&
  Dim sStr$
  Dim vColor, vD
  
  Set vD = CreateObject("Scripting.Dictionary")
  vColor = Array(34, 4, 45, 22, 26, 12, 8, 19, 24, 27, 38, 42, 44, 46, 0)
  iI = 0
  lRow = 5
  Do While Cells(lRow, 1) <> ""
    sStr = Cells(lRow, 50)
    If vD(sStr) = "" Then
      vD(sStr) = vColor(iI)
      iI = iI + 1
    End If
    Union(Cells(lRow, 7), Cells(lRow, 11)).Interior.ColorIndex = vD(sStr)
    lRow = lRow + 1
  Loop
End Sub

TOP

¦^´_  luhpro

¤j¤j§Ú·Q½Ð°Ý¦pªG¨ä¥LÄæ¦ìÁ`¦@§tÁôÂ꺦@¦³50´XÄæ
¦ý¬O§Ú·Q®Ö¹ïªº¬°²Ä11Äæ µM«á¤@°_Åܦâ ...
a31075ha µoªí©ó 2013-11-20 21:32



    ·PÁ¤j¤j ¬ã¨s¥X¨Ó¤F ^^"

Private Sub cbSetColor_Click()
  Dim iI%
  Dim lRow&
  Dim sStr$
  Dim vColor, vD
  
  Set vD = CreateObject("Scripting.Dictionary")
  vColor = Array(34, 4, 45, 22, 26, 12, 8, 19, 24, 27, 38, 42, 44, 46, 0)
  iI = 0
  lRow = 5
  Do While Cells(lRow, 1) <> ""
    sStr = Cells(lRow, 11)
    If vD(sStr) = "" Then
      vD(sStr) = vColor(iI)
      iI = iI + 1
    End If
    Union(Cells(lRow, 7), Cells(lRow, 11)).Interior.ColorIndex = vD(sStr)
    lRow = lRow + 1
  Loop
End Sub

³o¼Ë´N¥¿±`¤F

TOP

        ÀR«ä¦Û¦b : ¤p¨Æ¤£°µ¡B¤j¨ÆÃø¦¨¡C
ªð¦^¦Cªí ¤W¤@¥DÃD