{"id":2484,"date":"2015-07-06T08:24:54","date_gmt":"2015-07-05T23:24:54","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2484"},"modified":"2015-08-26T01:06:56","modified_gmt":"2015-08-25T16:06:56","slug":"protectsheet","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/protectsheet\/","title":{"rendered":"\u30b7\u30fc\u30c8\u3092\u4fdd\u8b77\u30fb\u4fdd\u8b77\u3057\u305f\u30b7\u30fc\u30c8\u3092\u89e3\u9664\u3059\u308b\uff08Protect \u30e1\u30bd\u30c3\u30c9\u30fbUnprotect \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Protect \u30e1\u30bd\u30c3\u30c9\u30fbUnprotect \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p><strong>Protect \u30e1\u30bd\u30c3\u30c9<\/strong>\u306f\u3001\u5bfe\u8c61\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\uff08<strong>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\uff09\u3092\u4fdd\u8b77\u3057\u3001\u5f15\u6570\u306a\u3057\u3067\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001Excel \u306e [\u6821\u95b2] &#8211; [\u30b7\u30fc\u30c8\u306e\u4fdd\u8b77] \u3067\u3001\u8868\u793a\u3055\u308c\u308b\u300c\u30b7\u30fc\u30c8\u306e\u4fdd\u8b77\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u306e\u8a2d\u5b9a\u306b\u3057\u305f\u304c\u3063\u3066\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3092\u4fdd\u8b77\u3057\u307e\u3059\u3002<br \/>\n    <strong>Unprotect \u30e1\u30bd\u30c3\u30c9<\/strong>\u306f\u3001\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u4fdd\u8b77\u3092\u89e3\u9664\u3057\u3001\u4fdd\u8b77\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3092\u4fdd\u8b77\uff1e<\/strong><\/span><br \/>\n    <em>Object<\/em>.<strong>Protect<\/strong> ( [ <em>Password<\/em>, <em>DrawingObjects<\/em>, <em>Contents<\/em>, <em>Scenarios<\/em>, <em>UserInterfaceOnly<\/em>, <em>AllowFormattingCells<\/em>, <em>AllowFormattingColumns<\/em>, <em>AllowFormattingRows<\/em>, <em>AllowInsertingColumns<\/em>, <em>AllowInsertingRows<\/em>, <em>AllowInsertingHyperlinks<\/em>, <em>AllowDeletingColumns<\/em>, <em>AllowDeletingRows<\/em>, <em>AllowSorting<\/em>, <em>AllowFiltering<\/em>, <em>AllowUsingPivotTables<\/em> ] )<\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u4fdd\u8b77\u3092\u89e3\u9664\uff1e<\/strong><\/span><br \/>\n    <em>Object<\/em>.<strong>Unprotect<\/strong> ( [ <em>Password<\/em> ] )<\/p><\/div>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5f15\u6570<\/strong><\/td>\n<td align = \"center\" width=\"20\" bgcolor=\"#ffffcc\"><strong>\u7701\u7565<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u578b<\/strong><\/td>\n<td align = \"center\" width=\"300\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >Password<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30d1\u30b9\u30ef\u30fc\u30c9\u6587\u5b57\u5217\u3092\u6307\u5b9a\uff08\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u306f\u3001\u533a\u5225\u3055\u308c\u308b\uff09\u3002\u7701\u7565\u6642\u306f\u3001\u89e3\u9664\u306e\u3068\u304d\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u4e0d\u8981\u3068\u306a\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >DrawingObjects<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u56f3\u5f62\u306e\u64cd\u4f5c\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001True\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >Contents<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30ed\u30c3\u30af\u3055\u308c\u305f\u30bb\u30eb\u3092\u4fdd\u8b77\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001True\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >Scenarios<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30b7\u30ca\u30ea\u30aa\u306e\u7de8\u96c6\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001True\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >UserInterfaceOnly<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u305f\u5909\u66f4\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u3002\u7701\u7565\u6642\u306f\u3001\u30de\u30af\u30ed\u3068\u901a\u5e38\u64cd\u4f5c\u306e\u4e21\u65b9\u3068\u3082\u4fdd\u8b77\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowFormattingCells<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30bb\u30eb\u306e\u66f8\u5f0f\u8a2d\u5b9a\u306e\u5909\u66f4\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowFormattingColumns<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u5217\u306e\u66f8\u5f0f\u8a2d\u5b9a\u306e\u5909\u66f4\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowFormattingRows<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u884c\u306e\u66f8\u5f0f\u8a2d\u5b9a\u306e\u5909\u66f4\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowInsertingColumns<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u5217\u306e\u633f\u5165\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowInsertingRows<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u884c\u306e\u633f\u5165\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowInsertingHyperlinks<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u306e\u633f\u5165\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowDeletingColumns<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u5217\u306e\u524a\u9664\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowDeletingRows<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u884c\u306e\u524a\u9664\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowSorting<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u4e26\u3079\u66ff\u3048\u306e\u64cd\u4f5c\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowFiltering<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\u306e\u64cd\u4f5c\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >AllowUsingPivotTables<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u3001\u30ec\u30dd\u30fc\u30c8\u306e\u64cd\u4f5c\u3092\u8a31\u53ef\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<\/table>\n<br \/>\n<p class=\"caution4\"><strong>Protect \u30e1\u30bd\u30c3\u30c9<\/strong>\u30fb<strong>Unprotect \u30e1\u30bd\u30c3\u30c9<\/strong>\u306f\u3001<strong>Chart \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30b0\u30e9\u30d5\u30b7\u30fc\u30c8\uff09<\/strong>\u3084<strong>Workbook \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30d6\u30c3\u30af\uff09<\/strong>\u3092\u5bfe\u8c61\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\uff08\u305f\u3060\u3057\u3001\u5f15\u6570\u306f\u7570\u306a\u308a\u307e\u3059\uff09\u3002<br \/>\n  \u21d2 <a href=\"https:\/\/excelwork.info\/excel\/protectbook\/\">\u30d6\u30c3\u30af\u3092\u4fdd\u8b77\u30fb\u4fdd\u8b77\u3092\u89e3\u9664\uff08Protect \u30e1\u30bd\u30c3\u30c9\u30fbUnprotect \u30e1\u30bd\u30c3\u30c9\uff09<\/a> \u3092\u53c2\u7167<br \/>\n  \u21d2 <a href=\"https:\/\/excelwork.info\/excel\/commingsoon\">\u30b0\u30e9\u30d5\u3092\u4fdd\u8b77\u30fb\u4fdd\u8b77\u3092\u89e3\u9664\uff08Protect \u30e1\u30bd\u30c3\u30c9\u30fbUnprotect \u30e1\u30bd\u30c3\u30c9\uff09<\/a> \u3092\u53c2\u7167<\/p>\n<\/div>\n<br \/><br \/>\n<h2>Protect \u30e1\u30bd\u30c3\u30c9\u30fbUnprotect \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Protect \u30e1\u30bd\u30c3\u30c9\u30fbUnprotect \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Protect()\r\n\r\n    '\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3092\u4fdd\u8b77\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304d\uff09\r\n    ActiveSheet.Protect Password:=\"12345abcde\"\r\n\r\n    \r\n    '\u4fdd\u8b77\u3092\u89e3\u9664\r\n    ActiveSheet.Unprotect Password:=\"12345abcde\"\r\n\r\nEnd Sub\r\n\u3000\r\n<\/pre>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>Protect \u30e1\u30bd\u30c3\u30c9\u30fbUnprotect \u30e1\u30bd\u30c3\u30c9 Protect \u30e1\u30bd\u30c3\u30c9 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2500,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[357],"tags":[361,362,63,311,38,359,360],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/EXCEL2013.jpg?fit=456%2C390&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-E4","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2484"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=2484"}],"version-history":[{"count":8,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2484\/revisions"}],"predecessor-version":[{"id":3355,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2484\/revisions\/3355"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2500"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}