- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 14
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-6
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2013-10-18 01:30 ½s¿è
¥Î¤F¥H¤UVBA
¥»·Q¿é¤J¸ê®Æ«á ¦Û°ÊÂê©wÀx¦s®æ
¥Î¦b´¶³qÀx¦s®æ¬O¥i¥H¥¿±`¨Ï¥Î
¦ý¦pªG¤w¸g¦X¨ÖªºÀx¦s®æ
...
kkttin µoªí©ó 2013-10-17 12:43
·í¼ÐªºÀx¦s®æ¬OÓ¦X¨ÖªºÀx¦s®æ®É (.Count > 1),
§ì¨ú¸ê®Æn§ï¥Î .Value2(1, 1)
§_«h¤£¬Oµo¥Í¿ù»~(.Value)´N¬O±o¨ìªÅÈ(.Text)
¤S¦]¬°§A¦³¤@¦æ On Error Resume Next(µo¥Í¿ù»~®É©¿²¤¸Ó¿ù»~,§ï±q¤U¤@¦æ«ü¥O¶}©lÄ~Äò°õ¦æ),
¬G¦Ó´Nµo¥Í§A¤£·Qnªºµ²ªGÅo.
§ï¦¨¦p¤U§Y¥i :- With Target
- .Parent.Unprotect
- .Locked = False
- If .Count = 1 Then
- If .Value <> "" Then
- .Locked = True
- .Parent.Protect Contents:=True
- End If
- Else
- If .Value2(1, 1) <> "" Then
- .Locked = True
- .Parent.Protect Contents:=True
- End If
- End If
- End With
½Æ»s¥N½X ¨S°O¿ùªº¸Ü¦b Office 2000 ®É¤£·|¦³³oÓ°ÝÃD, (¥i¥H¥Î .Value ©Î . Text ¥¿±`§ì¨ì¦X¨Ö«áªºÈ)
¦ü¥G¬O¨ì 2003 ®É§ïªº(§Ú®a¸Ì¥Îªºª©¥»),
§Úı±o³o¦³ÂI¦h¦¹¤@Á|,
¬JµMÀx¦s®æ¦X¨Ö«á¥u¯à«O¯d¤@ÓÈ,
¨º¦h¥X¨º¨Ç .Value2(1, 2), .Value2(1, 3)... ¨SÔ£·N¸q.(®Ú¥»µLªk¨Ï¥Î)
§óÁV¿|ªº¬O §Úèè¸ÕµÛ½á¤©Óȵ¹ Target.Value2(1, 2) , (¹ð¸Õ¤£²n)
¥¦·|µo¥ÍÄY«¿ù»~¥Bª½±µÃö³¬ Excel. O.O"
(Y¹ï [C4].Value2(1, 2) ½áȨS°ÝÃD, ¦ý¹ï Target.Value2(1, 2) ½áÈ´N·|¥X¤j¿ù) |
|