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

[µo°Ý] ÃöÁä¦rÅý¦C¤å¦rÅܦâ

[µo°Ý] ÃöÁä¦rÅý¦C¤å¦rÅܦâ

¦p¹Ï¡A¥Hvba°õ¦æ±NPÄ欰"¤w¥X¹Ï"ªº®É­Ô¡A¾ã¦C¨ìVÄæ¦ì¸mªº¤å¦rÅܦâ¡H

ÁÂÁÂ

¦CÅܦâ.jpg (37.67 KB)

¦CÅܦâ.jpg

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-10-25 08:04 ½s¿è

¦^´_ 16# ­ã´£³¡ªL
¦^´_ 1# wayne0303

ÁÂÁ ­ã´£³¡ªL«e½ú«ü¾É,¾Ç²ß¤ß±o¦p¤U,½Ð«e½ú¦A«ü±Ð






Private Sub Worksheet_Change(ByVal Target As Range)
'¡ô·í¨Ï¥ÎªÌ©Î¥~³¡³sµ²Åܧó¤u§@ªí¤¤ªºÀx¦s®æ®É·|µo¥Í¦¹¨Æ¥ó
https://learn.microsoft.com/zh-t ... el.worksheet.change
Dim xA As Range, xR As Range
'¡ô«Å§i(xA,xB)¬OÀx¦s®æÅܼÆ
Set xA = Intersect(Target, Range("V:V"))
'¡ô¥O³oxAÀx¦s®æÅܼƬO(IJµo®æ»PVÄæÀx¦s®æ)¥æ¶°ªºÀx¦s®æ
If xA Is Nothing Then Exit Sub
'¡ô¦pªGxAÅܼƬOªÅªº!´Nµ²§ôµ{§Ç°õ¦æ
Application.ScreenUpdating = False
'¡ô¥O¿Ã¹õ¼È®É°±¤îÅܤÆ
For Each xR In xA
'¡ô³]³v¶µ°j°é!¥OxR³oÀx¦s®æÅܼƬOxAÅܼƸ̪º¤@­ÓÀx¦s®æ
    Range(Cells(xR.Row, 1), xR).Font.ColorIndex = 15 ^ -(xR = "¤w¥X¹Ï")
    '¡ô¥OxRÅܼƩҦb¦Cªº²Ä1ÄæÀx¦s®æ¨ìxRÅܼƶ¡ªº¦r¦â¬OÅÞ¿è­pºâ«áªº¦â¸¹
    '·íxR = "¤w¥X¹Ï":(True)  >>  15 ^ -(-1)   >>  15
    '·íxR = "¤w¥X¹Ï":(False)  >>  15 ^ -(0)   >>  1

Next
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 33# Andy2483


    ¬O¤£»Ý­n¨º»ò¦h¿ï¶µ°ÕXD
    ÁÂÁ¼ö¤ßªºAndy¤j¤j~

TOP

¦^´_ 32# wayne0303

¦C¥Xªº¤èªk:
15 ^ -(InStr("/¨Æ°²/¯f°²/¥X®t/Â÷¾/¯S¥ð/", "/" & xR & "/") > 0)
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 31# Andy2483


    ¦n³á~ÁÂÁÂAndy¤j

TOP

¦^´_ 30# wayne0303


³Ì¥kÃ䪺¦r¬O"°²"¤]¥i¥H
Right(xR, 1) = "°²"
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 29# Andy2483


    ³á³á³á~¸U¥Î¦r¤¸¬O¥Î Like "*"
    ÁÂÁÂAndy¤j¤j~

TOP

¦^´_ 28# wayne0303


15 ^ -(xR = "¤w¥X¹Ï")   §ï¦¨
15 ^ -((xR Like "*°²") + (xR = "¥X®t") <> 0)
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¥»©«³Ì«á¥Ñ wayne0303 ©ó 2023-10-23 10:10 ½s¿è
Private Sub Worksheet_Change(ByVal Target As Range)
Dim xA As Range, xR As Range
Set xA = Intersect(Target, Range("P:P"))
If xA Is Nothing Then Exit Sub
Application.ScreenUpdating = False
For Each xR In xA
    Range(Cells(xR.Row, 1), Cells(xR.Row, 22)).Font.ColorIndex = 15 ^ -(xR = "¤w¥X¹Ï")
Next
End Sub


    ¤£¦n·N«ä¡A·Q½Ð°Ý¥i¥H¥Î³o­Óµ{¦¡½X±NÃöÁä¦r§ï¦¨ÃöÁä¦r¤º¥u­n¦³"°²"(¨Ò¦p¨Æ°²¡B¯f°²...¤§Ãþ¡A¸U¥Î¦r¤¸ªº¥N½X)©Î"¥X®t"´N¦³¤ÏÀ³¡A³o¼Ë¶Ü¡H

    ÁÂÁÂ~

TOP

¦^´_ 25# Andy2483


    ·PÁÂAndy¤jªº´£ÂI±o¥HÀ³¥Î¤u§@ªíªºµ{¦¡½X°õ¦æ¤F~ÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD