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

[µo°Ý] ½Ð°Ý·íA1¿é¤J¼Æ¦r4®É§ä¥X¤U¦C¸ê®Æ¦P¼Æ¦rªº¤½¦¡

[µo°Ý] ½Ð°Ý·íA1¿é¤J¼Æ¦r4®É§ä¥X¤U¦C¸ê®Æ¦P¼Æ¦rªº¤½¦¡

excel 2003©Î¥H«eªº ®æ¦¡¤Æ±ø¥ó ¥u¥i¥H ¦³3ºØ±ø¥ó, ¦A¥[±ø¥óªº¸Ü­n¥Î¤Wvba ¼g¤@­Ó ®æ¦¡¤Æ±ø¥ó ¥X¨Ó¤F
kimbal µoªí©ó 2010-7-13 20:39

http://forum.twbts.com/viewthread.php?tid=822
ÁÂÁÂ¥ý¶iKIMBALªº¦^¤å
¥i¥H³Â·Ðª¾¹Dªº¥ý¶i¥ÎVBA¼g®æ¦¡¤Æ±ø¥ó¶Ü?
ÁÂÁÂ..

¦^´_ 12# PD961A


§Ú±NÄæ¦ì©ñ¤j ©Ò¥Hµ{¦¡½Xª½±µ­×¥¿¨ì"L"Äæ¥h..¥i¬O·|µLªk°õ¦æ
  
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=OR(A2=$A$1,A2=$B$1,A2=$C$1,A2=$D$1,A2=$E$1,A2=$F$1,A2=$G$1,A2=$H$1,A2=$I$1,A2=$J$1,A2=$K$1,A2=$L$1)"

TOP

¦^´_ 13# Hsieh


    ª©¥DÁÂÁ±z
µ{¦¡RUN«á¥i¥H¾A¥Î
ÁÂÁ±z

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-7-15 11:13 ½s¿è

¦^´_ 12# PD961A
1.rar (10.87 KB)
¥H²Ä¤@¦CÃC¦â°µ§PÂ_
¥ý©w¸q¦WºÙx
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2. Set d = CreateObject("Scripting.Dictionary")
  3. For Each a In Range([A1], [IV1].End(xlToLeft))
  4. d(a.Value) = a.Interior.ColorIndex
  5. Next
  6. [x].Interior.ColorIndex = 0
  7. If Intersect(Target, Union([x], Range([A1], [IV1].End(xlToLeft)))) Is Nothing Then Exit Sub
  8.    For Each a In [x]
  9.      a.Interior.ColorIndex = d(a.Value)
  10.    Next
  11. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# GBKEE


    ÁÂÁÂGBKEEª©¥D
·Ó±z»¡ªº¨BÆJÀÉ®×¥i¥H¾A¥Î
¦ý¬O¥i¥H¦A½Ð°Ý±z
§Ú±NÄæ¦ì©ñ¤j
©Ò¥Hµ{¦¡½Xª½±µ­×¥¿¨ì"L"Äæ¥h..¥i¬O·|µLªk°õ¦æ
¥i¥H½Ð±z«ü¾É¶Ü?ÁÂÁ±z...




TOP

¦^´_ 10# victorl
¦^´_ 9# kimbal

ÁÂÁ victorl¤Î kimbal¥ý¶iªº¦^¤å
kimbal±zªºÀÉ®×¥i¥H¥Î¦ý¬O·|¥X²{victorl©Ò»¡ªºÃC¦âµLªk®ø°£
¤£¹L§Ú§âvictorl¥S¼gªºµ{¦¡½X¥[¤J«á·|µLªk°õ¦æ

ÁÂÁ±z­Ìªº¦^¤å

TOP

¦^´_ 9# kimbal


       «Øij¥[¤W¤@¦æ(¬õ¦r)¥ý§â¬J¦³¤§ÃC¦â®ø¥h¡A­Y§_....²Ä¤@¦C(A1~H1)§ïÅܼƦr¸Õ¸Õ¬Ý
              .....
       If c.Row <> 1 Then
             c.Interior.Color = xlNone
             For i = 1 To lngNumCols
              .....

TOP

ÁÂÁÂ¥ý¶iKIMBALªº¦^¤å
¥i¥H³Â·Ðª¾¹Dªº¥ý¶i¥ÎVBA¼g®æ¦¡¤Æ±ø¥ó¶Ü?
ÁÂÁÂ..
PD961A µoªí©ó 2010-7-14 08:19



    §Ú¤]¨Ó¸Ñ¸Ñ¹a§a , ÃC¦â¸ò²Ä¤@¦æªº¤@¼Ë
twbts20100715format.zip (12.22 KB)
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

¦^´_ 5# PD961A


    ¤p§Ì§Ú¥Î¤ñ¸û²Âªº§@ªk¡A¤£¹L©O¬O¥i¥H¹F¨ì±z­nªº®ÄªG´N¬O¤F
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    For Each a In Range(Me.[a2], Me.[h17])
        Select Case a
            Case Me.[a1]
                a.Interior.ColorIndex = 3
            Case Me.[b1]
                a.Interior.ColorIndex = 4
            Case Me.[c1]
                a.Interior.ColorIndex = 5
            Case Me.[d1]
                a.Interior.ColorIndex = 6
            Case Me.[e1]
                a.Interior.ColorIndex = 7
            Case Me.[f1]
                a.Interior.ColorIndex = 8
            Case Me.[g1]
                a.Interior.ColorIndex = 9
            Case Me.[h1]
                a.Interior.ColorIndex = 10
            Case Else
                a.Interior.Pattern = xlNone
        End Select
    Next
End Sub

TOP

¦^´_ 5# PD961A


    ¦pªG§A¬O2003ª©¥H«eª©¥»­n¥Î±ø¥ó®æ¦¡¬O¤£¯à°µ¨ì3ºØ±ø¥ó¥H¤W
¦^¤@¯ë°Ï¬Ý­ìµo¤å¦³¨S¦³±o¨ì¸Ñµª
¦pªG¨S¦³¨º´N§â»Ý¨D»¡²M·¡
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¨ü¤HÂI¤ô¤§®¦¡A¶··í´é¬u¥H³ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD