{"id":4484,"date":"2015-12-11T08:15:54","date_gmt":"2015-12-10T23:15:54","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=4484"},"modified":"2015-12-11T08:15:54","modified_gmt":"2015-12-10T23:15:54","slug":"bookcustomview","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/bookcustomview\/","title":{"rendered":"\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u306e\u30d3\u30e5\u30fc\uff08CustomView \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09"},"content":{"rendered":"<h2>\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u306e\u30d3\u30e5\u30fc<\/h2>\n<div class=\"m30-l\">\n<p><strong>CustomView \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u306f\u3001\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u5404\u30d3\u30e5\u30fc\u3092\u8868\u3057\u3001\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<strong>CustomViews(<em>index<\/em>) \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\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>CustomViews<\/strong> ( <em>index<\/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>index&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30d3\u30e5\u30fc\u306e\u540d\u524d\u307e\u305f\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong>CustomViews \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u306e\u8a73\u7d30\u306b\u95a2\u3057\u3066\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/bookcustomviews\/\">\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u306e\u30d3\u30e5\u30fc\uff08CustomViews \u30d7\u30ed\u30d1\u30c6\u30a3\uff09<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>CustomView \u306e\u4e3b\u306a\u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<br \/>\n<h3>CustomView.Show \u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u30d3\u30e5\u30fc\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Show<\/strong><\/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>CustomView \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>CustomView.Delete \u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u6307\u5b9a\u3057\u305f\u30d3\u30e5\u30fc\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Delete<\/strong><\/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>CustomView \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>CustomView \u306e\u4e3b\u306a\u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<br \/>\n<h3>CustomView.Name \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u6307\u5b9a\u3057\u305f\u30d3\u30e5\u30fc\u306e\u540d\u524d\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Name<\/strong><\/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>CustomView \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>CustomView.PrintSettings \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u6307\u5b9a\u3057\u305f\u30d3\u30e5\u30fc\u306b\u3001\u5370\u5237\u8a2d\u5b9a\u3092\u542b\u3093\u3067\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09\u306e\u5024\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\uff08\u5370\u5237\u8a2d\u5b9a\u3092\u542b\u3093\u3067\u3044\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong> \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\uff09<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>PrintSettings<\/strong><\/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>CustomView \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>CustomView.RowColSettings \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u6307\u5b9a\u3057\u305f\u30d3\u30e5\u30fc\u306b\u3001\u975e\u8868\u793a\u306e\u884c\u5217\u30fb\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u8a2d\u5b9a\u3092\u542b\u3093\u3067\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09\u306e\u5024\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\uff08\u975e\u8868\u793a\u306e\u884c\u5217\u30fb\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u8a2d\u5b9a\u3092\u542b\u3093\u3067\u3044\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong> \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\uff09<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>RowColSettings<\/strong><\/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>CustomView \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>CustomView \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=\"CustomView \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample01_CustomView()\r\n\r\n    Dim v As CustomView\r\n    Dim str As String\r\n    \r\n    With ActiveWorkbook\r\n    \r\n        For Each v In .CustomViews\r\n                \r\n            str = str & _\r\n                  \"\u3010\u540d\u524d\u3011\uff1a\" & v.Name & _\r\n                  \"\u3000\u3010\u5370\u5237\u306e\u8a2d\u5b9a\u3011\uff1a\" & v.PrintSettings & _\r\n                  \"\u3000\u3010\u975e\u8868\u793a\u884c\u5217\u3011\uff1a\" & v.RowColSettings & vbCrLf\r\n    \r\n        Next v\r\n    \r\n    End With\r\n    \r\n    MsgBox str\r\n    \r\nEnd Sub\r\n\u3000\r\nSub Sample02_CustomView()\r\n\u3000\r\n    '\u6307\u5b9a\u3057\u305f\u30d3\u30e5\u30fc\u3092\u8868\u793a\r\n    ActiveWorkbook.CustomViews(\"\u30c6\u30b9\u30c8\u7d50\u679c\u4e00\u89a7\u8868\").Show\r\n\u3000\r\nEnd Sub\r\n\u3000\r\nSub Sample03_CustomView()\r\n\u3000\r\n    '\u6307\u5b9a\u3057\u305f\u30d3\u30e5\u30fc\u3092\u524a\u9664\r\n    ActiveWorkbook.CustomViews(\"\u30c6\u30b9\u30c8\u7d50\u679c\u4e00\u89a7\u8868\").Delete\r\n\u3000\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p>Sub Sample01_CustomView() \u3092\u5b9f\u884c<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview00.jpg?ssl=1\" rel=\"lightbox[4484]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview00.jpg?resize=580%2C332&#038;ssl=1\" alt=\"CustomView \u30d7\u30ed\u30d1\u30c6\u30a3 01\" width=\"580\" height=\"332\" class=\"alignnone size-large wp-image-4486\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview00.jpg?resize=580%2C332&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview00.jpg?resize=400%2C229&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview00.jpg?w=900&amp;ssl=1 900w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/>\n<p>Sub Sample01_CustomView() \u3092\u5b9f\u884c<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview01.jpg?ssl=1\" rel=\"lightbox[4484]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview01.jpg?resize=580%2C332&#038;ssl=1\" alt=\"CustomView \u30d7\u30ed\u30d1\u30c6\u30a3 02\" width=\"580\" height=\"332\" class=\"alignnone size-large wp-image-4487\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview01.jpg?resize=580%2C332&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview01.jpg?resize=400%2C229&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview01.jpg?w=898&amp;ssl=1 898w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u306e\u30d3\u30e5\u30fc CustomView \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u5404\u30d3\u30e5 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4506,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[357],"tags":[704,705,63,363,38,360],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/bookcustomview00-580x332-1.jpg?fit=580%2C332&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1ak","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4484"}],"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=4484"}],"version-history":[{"count":5,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4484\/revisions"}],"predecessor-version":[{"id":4505,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4484\/revisions\/4505"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/4506"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=4484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=4484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=4484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}