{"id":2490,"date":"2015-07-07T08:58:31","date_gmt":"2015-07-06T23:58:31","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2490"},"modified":"2015-08-26T01:04:54","modified_gmt":"2015-08-25T16:04:54","slug":"protectbook","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/protectbook\/","title":{"rendered":"\u30ef\u30fc\u30af\u30d6\u30c3\u30af\u3092\u4fdd\u8b77\u30fb\u4fdd\u8b77\u3092\u89e3\u9664\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\u30d6\u30c3\u30af\uff08<strong>Workbook \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; [\u30d6\u30c3\u30af\u306e\u4fdd\u8b77] \u3067\u3001\u8868\u793a\u3055\u308c\u308b\u300c\u30d6\u30c3\u30af\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\u30d6\u30c3\u30af\u3092\u4fdd\u8b77\u3057\u307e\u3059\u3002<br \/>\n    <strong>Unprotect \u30e1\u30bd\u30c3\u30c9<\/strong>\u306f\u3001\u30ef\u30fc\u30af\u30d6\u30c3\u30af\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\u30d6\u30c3\u30af\u3092\u4fdd\u8b77\uff1e<\/strong><\/span><br \/>\n    <em>Object<\/em>.<strong>Protect<\/strong> ( [ <em>Password<\/em>, <em>Structure<\/em>, <em>Windows<\/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\" >Structure<\/td>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30d6\u30c3\u30af\u306e\u69cb\u9020\uff08\u30b7\u30fc\u30c8\u306e\u79fb\u52d5\u30fb\u524a\u9664\u30fb\u8ffd\u52a0\u7b49\uff09\u3092\u4fdd\u8b77\u3059\u308b\uff08 True \uff09\u65e2\u5b9a\u5024\u306f\u3001False\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >Windows<\/p>\n<td width=\"20\" align = \"center\">\u53ef<\/td>\n<td width=\"80\" align = \"center\">Variant<\/td>\n<td width=\"320\" >\u30d6\u30c3\u30af\u306e\u30a6\u30a4\u30f3\u30c9\u30a6\u72b6\u614b\u3092\u4fdd\u8b77\u3059\u308b\uff08 True \uff09\u7701\u7565\u3059\u308b\u3068\u30a6\u30a4\u30f3\u30c9\u30a6\u306f\u4fdd\u8b77\u3055\u308c\u306a\u3044\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>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\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\/protectsheet\">\u30b7\u30fc\u30c8\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\u30d6\u30c3\u30af\u3092\u4fdd\u8b77\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304d\uff09\r\n    ThisWorkbook.Protect \"12345abcde\"\r\n\r\n\r\n    '\u4fdd\u8b77\u3092\u89e3\u9664\r\n    ThisWorkbook.Unprotect \"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,363,38,360,364],"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-Ea","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2490"}],"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=2490"}],"version-history":[{"count":4,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2490\/revisions"}],"predecessor-version":[{"id":3354,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2490\/revisions\/3354"}],"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=2490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}