- ©«¤l
- 193
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 222
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows7
- ³nÅ骩¥»
- OFFICE2013
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2015-9-18
- ³Ì«áµn¿ý
- 2023-4-29
|
½Ð°Ý¦p¦ó±NExcel ±K½X«OÅ@¸ê®Æªí
¥Ø«e¼g¤J³o¬qµ{¦¡½X , ¦ý¨Ï¥ÎªÌ¤@¼Ë¥i¥H«ö¥kÁä¡y¨ú®ø«OÅ@¤u§@ªí¡z
§Y¨Ï§Ú¦b¸ê®Æªí«ö¥kÁä±Ò¥Î¡y«OÅ@¤u§@ªí¡z¨Ã¿é¤J±K½X, ¦ýÃö³¬«á¦A¶}±Ò
¨Ï¥ÎªÌ¤@¼Ë¥i¥H«ö¥kÁä¡y¨ú®ø«OÅ@¤u§@ªí¡z.....®Ú¥»¨S¦³¹F¨ì«OÅ@ªº®ÄªG- Option Explicit
- Sub Ex()
- With ActiveSheet '¡±@¥Î¤¤ªº¤u¡±@ªí
- .Unprotect
- .Range("A2:L55").Locked = False
- .Protect 'DrawingObjects:=True, Contents:=True, Scenarios:=True
- ' .EnableSelection = xlUnlockedCells '¤u¡±@ªí¤W,¨S¤WÂêÀx¦s®æ¥i¿ï
- .EnableSelection = xlNoSelection '¤u¡±@ªí¤WªºÀx¦s®æ¤£¥i¿ïªº
- '.EnableSelection = xlNoRestrictions '¤£­­¨î
- End With
- End Sub
½Æ»s¥N½X |
|