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

[µo°Ý] «ö¶s¬°°ÊºA¤å¦r

[µo°Ý] «ö¶s¬°°ÊºA¤å¦r

Hi ¦U¦ì«e½ú¦n
§Ú¸ÕµÛ·Q­n¥Î¤@­ÓVBA«ö¶s¤ºªº¤å¦r¬°°ÊºA
¦pªþ¥[Àɮפº
·í§Ú±N"V"©ñ¦bC2®É¡A¬°¦óÂI¿ï°õ¦æ¶s¤§«á¡A"V" ª½±µ¸õ¨ìC6?
¬O­þ¸Ì§Ë¿ù¤F¶Ü?

New folder.zip (85.31 KB)
²öÅý¥L¤H¿ù»~¶Ë®`¦Û¤v

¥»©«³Ì«á¥Ñ y54161212 ©ó 2022-7-14 17:15 ½s¿è
Hi ¦U¦ì«e½ú¦n
§Ú¸ÕµÛ·Q­n¥Î¤@­ÓVBA«ö¶s¤ºªº¤å¦r¬°°ÊºA
¦pªþ¥[Àɮפº
·í§Ú±N"V"©ñ¦bC2®É¡A¬°¦óÂI¿ï°õ¦æ¶s ...
y54161212 µoªí©ó 2022-7-14 16:56



¬O¦]¬°¨S¦³³]©wÂ_ÂIÅý¦oºû«ù¦í¶Ü?
·N«ä¬O

·í¤å¦rµ¥©óB2®É¡A"V"¸õ¨ìC3
µM«á­nÅý¥¦²æÂ÷For³o­Ó°j°é¤~·|Åý"V"ºû«ù¦bC3
¤U¤@¦¸ÂI«ö¶sªº®É­Ô
¤~·|Åܦ¨¤å¦rµ¥©óB3¡A"V"¸õ¨ìC4
¬O³o¼Ë¶Ü?


==============================
¤w¸g¸Ñ¨M
½T¹ê¬O¦p¦¹
«¢!
²öÅý¥L¤H¿ù»~¶Ë®`¦Û¤v

TOP

¦^´_ 2# y54161212


    §Aªºcode¬Ý¤£¨ì¦³¥ô¦ó§PÂ_¦¡¸õ²æªº¦s¦b
    ¥u¬O³æ¯Âªº °j°é°õ¦æ~

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2022-12-5 00:59 ½s¿è

¦^´_ 1# y54161212

«ö¶s´ú¸Õ¤å¦rÅÜ°Ê v1.zip (19.44 KB)

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2022-12-5 11:02 ½s¿è

¦^´_ 4# singo1232001


    ÁÂÁ«e½ú
³o­Ó½d¨Ò¹ï©ó«á¾Ç¤Ó­«­n¤F!
¹ï©óÀx¦s®æ¤º®e½s¿èªºÄ²µo¨Æ¥óªº³¯­z¤èªk¦³§ó¤@¼h¦¸ªº»{ª¾,¹B¥Î¤@­Ó¥¬ªLÅܼƦb³Ì«e­±²×¤î¦AIJµo
ÁÂÁÂ
¥¼½s¿èCÄæ®É:


½s¿è«á:


«á¾Çªº¾Ç²ß¤ß±o¦p¤U,½Ð«e½ú¦A«ü¾É!ÁÂÁÂ
Option Explicit
Dim stopA, R&
'¡ô«Å§iÅܼÆ!(stopA)¬O³q¥Î«¬ÅܼÆ,R¬Oªø¾ã¼Æ
Private Sub Worksheet_Change(ByVal Target As Range)
'¡ôÀx¦s®æ¤º®e½s¿èIJµo¨Æ¥ó
If stopA = True Then Exit Sub
'¡ô¦pªGstopA ³oÅܼƬO¥¬ªL­È True!´N¸õ¥Xµ{¦¡°õ¦æ
'³ostopA ªºªì©l­È¬O µL
If Target.Count > 1 Then Exit Sub
'¡ô¦pªGIJµo®æ¶W¹L1®æ!´N¸õ¥Xµ{¦¡°õ¦æ
If Target.Column <> 3 Then Exit Sub
'¡ô¦pªGIJµo®æ¤£¬O¦b²Ä¤TÄæ!´N¸õ¥Xµ{¦¡°õ¦æ
If Target.Row = 1 Then Exit Sub
'¡ô¦pªGIJµo®æ¦b²Ä¤@¦C!´N¸õ¥Xµ{¦¡°õ¦æ
R = Cells(Rows.Count, 2).End(xlUp).Row
'¡ô¥ORÅÜ¼Æ ¬OBÄæ³Ì«áªº¦³¤º®eÀx¦s®æ¦C¸¹
If Target.Row > R Then Exit Sub
'¡ô¦pªGIJµo®æªº¦C¸¹¤j©ó RÅܼÆ
If UCase(Target.Value) <> "V" Then Exit Sub
'¡ô¦pªGIJµo®æªº­ÈÂà¤j¼g¤§«á¤£¬O"V"­^¤å¦r¥À!´N¸õ¥Xµ{¦¡°õ¦æ
'«e­±³o¨Ç³£¬O¬°¤FÅý¤£²Å¦X»Ý­nªº±ø¥ó³£ ¸õ¥Xµ{¦¡°õ¦æ
stopA = True
'¡ô¥OstopA ¬O¥¬ªL­È True
Range("c2:c" & R).ClearContents
'¡ô¥O[C2]¨ìCÄ檺RÅܼƦCÀx¦s®æ²M°£¤º®e
'1.³o­Ó°Ê§@·|Åýµ{§Ç¸õ¨ì³Ì«e­±Ä~Äò°õ¦æ,¦]¬°.ClearContents(²M°£¤º®e)¥»¨Ó´N¬O½s¿èÀx¦s®æ
'©Ò¥Hªì¦¸Ä²µo¨Ã¨S¦³¶]¨ì¤U­±ªºµ{§Ç
'2.¨ì¤F If stopA = True Then Exit Sub ¸õ¥Xµ{¦¡°õ¦æ ¨ÃÁÙ¨S¯u¥¿µ²§ô!
'¦]¬°²Ä¤@¦¸ªºÄ²µoÁÙ¨S©¹¤U¶]§¹,·|Ä~Äò©¹¤Uµ{§ÇÄ~Äò¶]

Target.Value = "V"
'¡ô¥OIJµo®æªº­È¬O "V"
stopA = False
'¡ô¥OstopA ³o¥¬ªLÅܼƬ° False
CommandButton1.Caption = Target.Offset(0, -1)
'¡ô¥O«ö¶s¤å¦r¬O IJµo®æ°¾²¾¥ªÃä¤@Ä檺­È
End Sub

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦pÆp¥Û¡j®É¶¡¹ï¤@­Ó¦³´¼¼zªº¤H¦Ó¨¥¡A´N¦pÆp¥Û¯ë¬Ã¶Q¡F¦ý¹ï·M¤H¨Ó»¡¡A«o¹³¬O¤@§âªd¤g¡A¤@ÂI»ù­È¤]¨S¦³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD