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

[µo°Ý] ½Ð°Ý¦p¦ó§â¤u§@ªí¤¤©Ò¦³§t¤½¦¡ªºÀx¦s®æ³]©w¬°¤£¥i½s¿è«á¡A«OÅ@¤u§@ªí

[µo°Ý] ½Ð°Ý¦p¦ó§â¤u§@ªí¤¤©Ò¦³§t¤½¦¡ªºÀx¦s®æ³]©w¬°¤£¥i½s¿è«á¡A«OÅ@¤u§@ªí

¤p§Ì­è±µÄ²VBA
·Q­n¸ÕµÛ§â­ì¥»°µ¦nªºexcel ÀÉ®× ¦³¤½¦¡ªº³¡¤À¦Û°Ê¥[¤W«OÅ@ ÁקK¨ä¥L¤H¤£¤p¤ß­×§ï µM«á¨ä¾lÀx¦s®æ»Ý­n¥Ñ¨Ï¥ÎªÌ¿é¤J
¹Á¸Õ¤F¤@¤U¡Aµ²ªG§Ú¥u·|§â¦³¤½¦¡ªºÀx¦s®æ§Ë¦¨¥i½s¿è¡A»P§Ú·Q­nªº­è¦n¬Û¤Ï

Sub protect_formula()
ActiveSheet.Unprotect
ActiveSheet.Protection.AllowEditRanges.Add _
        Title:="formula", _
        Range:=Selection.SpecialCells(xlCellTypeFormulas)
ActiveSheet.protect
End Sub

¦³«e½ú¯à±Ð§Ú¶Ü?

¦^´_ 1# df2001tw
§Q¥ÎÀx¦s®æ®æ¦¡>«OÅ@>Âê©w
  1. Sub Test()
  2.   With ActiveSheet
  3.     .Unprotect
  4.     .Cells.Locked = False
  5.     .Cells.SpecialCells(xlCellTypeFormulas).Locked = True
  6.     .Protect
  7.   End With
  8. End Sub
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 2# stillfish00


­ì¨Ó¦p¦¹¡A¤p§Ì¬O¥ý¥Î¿ý»s¥¨¶°¤è¦¡¼Ò¥éªº¡A
­ì¨Ó¦³³o»ò¤è«Kªº¤èªk
ÁÂÁ«e½ú«ü¾É~

TOP

        ÀR«ä¦Û¦b : ¯à·F¤£·F¡A¤£¦p­W·F¹ê·F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD