{"id":2474,"date":"2015-07-05T09:31:03","date_gmt":"2015-07-05T00:31:03","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2474"},"modified":"2015-07-08T08:47:17","modified_gmt":"2015-07-07T23:47:17","slug":"protectcontents","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/protectcontents\/","title":{"rendered":"\u30b7\u30fc\u30c8\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\uff08ProtectContents \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>ProtectContents \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p>\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u307e\u3059\u3002\u8fd4\u3055\u308c\u308b\u5024\u306f<strong>\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09<\/strong>\u3067\u3001\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f <strong>True<\/strong> \u3001\u4fdd\u8b77\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f <strong>False<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>result<\/em> = <em>Object<\/em>.<strong>ProtectContents<\/strong><\/p><\/div>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span><\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong>\u3001\u4fdd\u8b77\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001<strong>Fasle<\/strong>\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u30b7\u30fc\u30c8\u3092\u4fdd\u8b77\u3059\u308b\u306b\u306f\u3001<strong>Protect \u30e1\u30bd\u30c3\u30c9<\/strong>\u3001\u89e3\u9664\u3059\u308b\u306b\u306f\u3001<strong>Unprotect \u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n    \u21d2 <a href=\"https:\/\/excelwork.info\/excel\/protectsheet\/\">\u30b7\u30fc\u30c8\u3092\u4fdd\u8b77\u30fb\u4fdd\u8b77\u3057\u305f\u30b7\u30fc\u30c8\u3092\u89e3\u9664\u3059\u308b<\/a> \u3092\u53c2\u7167<\/p>\n<p class=\"caution4\"><strong>ProtectContents \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u306f\u3001<strong>Chart \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30b0\u30e9\u30d5\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\u3002<br \/>\n    \u21d2 <a href=\"https:\/\/excelwork.info\/excel\/protectcontentschart\/\">\u30b0\u30e9\u30d5\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\uff08ProtectContents \u30d7\u30ed\u30d1\u30c6\u30a3\uff09<\/a> \u3092\u53c2\u7167<\/p>\n<\/div>\n<br \/><br \/>\n<h2>ProtectContents \u30d7\u30ed\u30d1\u30c6\u30a3 \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=\"ProtectContents \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_ProtectContents()\r\n\r\n    \r\n    If ActiveSheet.ProtectContents = True Then\r\n    \r\n        MsgBox \"\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306f\u4fdd\u8b77\u3055\u308c\u3066\u3044\u307e\u3059\u3002\"\r\n    \r\n    Else\r\n    \r\n        MsgBox \"\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306f\u4fdd\u8b77\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\"\r\n    \r\n    End If\r\n    \r\n\r\nEnd Sub\r\n\u3000\r\n<\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/protectcontents011.jpg?ssl=1\" rel=\"lightbox[2474]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/protectcontents011.jpg?resize=221%2C155&#038;ssl=1\" alt=\"ProtectContents \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b\" width=\"221\" height=\"155\" class=\"alignnone size-full wp-image-2496\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>ProtectContents \u30d7\u30ed\u30d1\u30c6\u30a3 \u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2496,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[357],"tags":[358,63,311,38,359,360],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/protectcontents011.jpg?fit=221%2C155&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-DU","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2474"}],"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=2474"}],"version-history":[{"count":11,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2474\/revisions"}],"predecessor-version":[{"id":2534,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2474\/revisions\/2534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2496"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}