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

[µo°Ý] ½Ð±Ð¤WÃC¦â°ÝÃD¡A·PÁÂ!!

¦Ò¶q©¹«á¥i¯à·|·Q©w¸q¤£¦PÃC¦â¡A«Øij¥Î°}¦C¡A­×§ï®É¤£¥²§ï¤@°ï§PÂ_¦¡
  1. Sub GiveColor()
  2. Dim ColorArr(), I%

  3. ColorArr = Array("", "13434879", "13434879", "13434879", "13434828", "13434828", "13434828", "16777164", "16777164", "16777164") '©w¸q±q0~9ªºÃC¦â
  4. I = 2   '°_©l¦C
  5. With ActiveSheet
  6.     Do While .Cells(I, 4) <> ""
  7.         .Range(.Cells(I, 1), .Cells(I, 4)).Interior.Color = ColorArr(.Cells(I, 4))
  8.         I = I + 1
  9.     Loop
  10. End With
  11. End Sub
½Æ»s¥N½X

TOP

¦^´_ 6# lpk187
½T¹ê¡A¥Îfunction¨ÓºûÅ@¡A·|¸û¤£©ö¥X¿ù

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤H¤£©È¿ù¡A´N©È¤£§ï¹L¡A§ï¹L¨Ã¤£Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD