{"id":4432,"date":"2015-12-08T08:27:50","date_gmt":"2015-12-07T23:27:50","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=4432"},"modified":"2015-12-08T08:27:50","modified_gmt":"2015-12-07T23:27:50","slug":"removedocumentinformation","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/removedocumentinformation\/","title":{"rendered":"\u6307\u5b9a\u3055\u308c\u305f\u60c5\u5831\u3092\u30d6\u30c3\u30af\u304b\u3089\u524a\u9664\uff08RemoveDocumentInformation \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>RemoveDocumentInformation \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u6307\u5b9a\u3055\u308c\u305f\u7a2e\u985e\u306e\u60c5\u5831\u3092\u30d6\u30c3\u30af\u304b\u3089\u524a\u9664\u3057\u307e\u3059\u3002\u524a\u9664\u3059\u308b\u60c5\u5831\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3059\u308b\u306b\u306f\u3001<strong>XlRemoveDocInfoType \u5217\u6319\u578b<\/strong> \u306e\u5b9a\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>RemoveDocumentInformation<\/strong> ( <em>removedocinfotype<\/em> )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<div class=\"m30-l\">\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>Workbook \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>removedocinfotype&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u524a\u9664\u3059\u308b\u60c5\u5831\u306e\u7a2e\u985e\u3092\u8868\u3059 <strong>XlRemoveDocInfoType \u5217\u6319\u578b<\/strong> \u306e\u5b9a\u6570\u307e\u305f\u306f\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"200\" bgcolor=\"#fffccc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"50\" bgcolor=\"#fffccc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#fffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIComments<\/td>\n<td align = \"center\" width=\"50\">1<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30b3\u30e1\u30f3\u30c8\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIRemovePersonalInformation<\/td>\n<td align = \"center\" width=\"50\">4<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u500b\u4eba\u60c5\u5831\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIEmailHeader<\/td>\n<td align = \"center\" width=\"50\">5<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30e1\u30fc\u30eb \u30d8\u30c3\u30c0\u30fc\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIRoutingSlip<\/td>\n<td align = \"center\" width=\"50\">6<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u56de\u89a7\u5148\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDISendForReview<\/td>\n<td align = \"center\" width=\"50\">7<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089 [\u6821\u95b2\u8005\u3078\u9001\u4fe1] \u60c5\u5831\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIDocumentProperties<\/td>\n<td align = \"center\" width=\"50\">8<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u6587\u66f8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIDocumentWorkspace<\/td>\n<td align = \"center\" width=\"50\">10<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9 \u30c7\u30fc\u30bf\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIInkAnnotations<\/td>\n<td align = \"center\" width=\"50\">11<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30a4\u30f3\u30af\u6ce8\u91c8\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIScenarioComments<\/td>\n<td align = \"center\" width=\"50\">12<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30b7\u30ca\u30ea\u30aa\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIPublishInfo<\/td>\n<td align = \"center\" width=\"50\">13<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u767a\u884c\u60c5\u5831\u30c7\u30fc\u30bf\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIDocumentServerProperties<\/td>\n<td align = \"center\" width=\"50\">14<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30b5\u30fc\u30d0\u30fc \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIDocumentManagementPolicy<\/td>\n<td align = \"center\" width=\"50\">15<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u6587\u66f8\u7ba1\u7406\u30dd\u30ea\u30b7\u30fc \u30c7\u30fc\u30bf\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIContentType<\/td>\n<td align = \"center\" width=\"50\">16<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30b3\u30f3\u30c6\u30f3\u30c4 \u30bf\u30a4\u30d7\u306e\u30c7\u30fc\u30bf\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIDefinedNameComments<\/td>\n<td align = \"center\" width=\"50\">18<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u5b9a\u7fa9\u6e08\u307f\u306e\u540d\u524d\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIInactiveDataConnections<\/td>\n<td align = \"center\" width=\"50\">19<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u7121\u52b9\u306a\u30c7\u30fc\u30bf\u63a5\u7d9a\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIPrinterPath<\/td>\n<td align = \"center\" width=\"50\">20<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30d7\u30ea\u30f3\u30bf\u30fc\u306e\u30d1\u30b9\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIInlineWebExtensions<\/td>\n<td align = \"center\" width=\"50\">21<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30a4\u30f3\u30e9\u30a4\u30f3 Web \u62e1\u5f35\u6a5f\u80fd\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDITaskpaneWebExtensions<\/td>\n<td align = \"center\" width=\"50\">22<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u306e Web \u62e1\u5f35\u6a5f\u80fd\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIExcelDataModel<\/td>\n<td align = \"center\" width=\"50\">23<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u304b\u3089\u30c7\u30fc\u30bf \u30e2\u30c7\u30eb \u30c7\u30fc\u30bf\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlRDIAll<\/td>\n<td align = \"center\" width=\"50\">99<\/td>\n<td width=\"400\">\u6587\u66f8\u60c5\u5831\u3092\u3059\u3079\u3066\u524a\u9664<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>RemoveDocumentInformation \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=\"RemoveDocumentInformation \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_RemoveDocumentInformation()\r\n\r\n    Dim w As Workbook\r\n    Set w = Workbooks.Open(\"C:\\Documents\\mybook.xlsx\")\r\n        \r\n    \r\n    '\u30a8\u30e9\u30fc\u767a\u751f\u6642\u3001\u7121\u8996\u3057\u3066\u6b21\u3078\u9032\u3080\r\n    On Error Resume Next\r\n        \r\n    '\u3010\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8a2d\u5b9a\u3011\r\n    '\u30bf\u30a4\u30c8\u30eb\u3092\u300c\u30b5\u30f3\u30d7\u30eb\u300d\u306b\u8a2d\u5b9a\r\n    w.BuiltinDocumentProperties(\"Title\") = \"\u30b5\u30f3\u30d7\u30eb\"\r\n    \r\n    '\u4f5c\u6210\u8005\u3092\u300c\u5c71\u7530 \u592a\u90ce\u300d\u306b\u8a2d\u5b9a\r\n    w.BuiltinDocumentProperties(\"Author\") = \"\u5c71\u7530 \u592a\u90ce\"\r\n    \r\n    '\u6700\u7d42\u4fdd\u5b58\u8005\u3092\u300c\u5c71\u7530 \u82b1\u5b50\u300d\u306b\u8a2d\u5b9a\r\n    w.BuiltinDocumentProperties(\"Last Author\") = \"\u5c71\u7530 \u82b1\u5b50\"\r\n        \r\n                \r\n    With w.ActiveSheet\r\n    \r\n        .Cells(1, 1) = \"\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u7a2e\u985e\"\r\n        .Cells(1, 2) = \"\u5024\uff08\u524a\u9664\u524d\uff09\"\r\n        .Cells(1, 3) = \"\u5024\uff08\u524a\u9664\u5f8c\uff09\"\r\n        \r\n        .Cells(2, 1) = \"Title\"\r\n        .Cells(3, 1) = \"Author\"\r\n        .Cells(4, 1) = \"Last Author\"\r\n        \r\n        '\u30b7\u30fc\u30c8\u306b\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u7a2e\u985e\u3068\u8a2d\u5b9a\u5024\u3092\u5165\u529b\r\n        .Cells(2, 2) = w.BuiltinDocumentProperties(\"Title\").Value\r\n        .Cells(3, 2) = w.BuiltinDocumentProperties(\"Author\").Value\r\n        .Cells(4, 2) = w.BuiltinDocumentProperties(\"Last Author\").Value\r\n    \r\n        '\u30d7\u30ed\u30d1\u30c6\u30a3\u60c5\u5831\u3092\u524a\u9664\r\n        w.RemoveDocumentInformation xlRDIDocumentProperties\r\n    \r\n        '\u30b7\u30fc\u30c8\u306b\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u7a2e\u985e\u3068\u8a2d\u5b9a\u5024\u3092\u5165\u529b\r\n        .Cells(2, 3) = w.BuiltinDocumentProperties(\"Title\").Value\r\n        .Cells(3, 3) = w.BuiltinDocumentProperties(\"Author\").Value\r\n        .Cells(4, 3) = w.BuiltinDocumentProperties(\"Last Author\").Value\r\n\r\n    End With\r\n        \r\n    \r\n    '\u5217\u5e45\u81ea\u52d5\u8a2d\u5b9a\r\n    w.ActiveSheet.Columns(\"A:C\").AutoFit\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:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/book_removedocumentinformation01.jpg?ssl=1\" rel=\"lightbox[4432]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/book_removedocumentinformation01.jpg?resize=481%2C279&#038;ssl=1\" alt=\"RemoveDocumentInformation \u30e1\u30bd\u30c3\u30c9\" width=\"481\" height=\"279\" class=\"alignnone size-full wp-image-4433\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/book_removedocumentinformation01.jpg?w=481&amp;ssl=1 481w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/book_removedocumentinformation01.jpg?resize=400%2C232&amp;ssl=1 400w\" sizes=\"(max-width: 481px) 100vw, 481px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>RemoveDocumentInformation \u30e1\u30bd\u30c3\u30c9 \u6307\u5b9a\u3055\u308c\u305f\u7a2e\u985e\u306e\u60c5 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4433,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[357],"tags":[689,63,363,690,38,360],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/book_removedocumentinformation01.jpg?fit=481%2C279&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-19u","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4432"}],"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=4432"}],"version-history":[{"count":3,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4432\/revisions"}],"predecessor-version":[{"id":4474,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4432\/revisions\/4474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/4433"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=4432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=4432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=4432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}