{"id":11216,"date":"2019-02-12T15:00:23","date_gmt":"2019-02-12T06:00:23","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=11216"},"modified":"2019-02-12T16:16:54","modified_gmt":"2019-02-12T07:16:54","slug":"%e3%83%aa%e3%83%9c%e3%83%b3%e3%83%bb%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%9e%e3%82%a4%e3%82%ba%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e3%81%ae%e8%a1%a8%e7%a4%ba%e3%83%bb%e9%9d%9e%e8%a1%a8%e7%a4%ba%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=11216","title":{"rendered":"[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]\u30b0\u30eb\u30fc\u30d7\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3067\u5207\u308a\u66ff\u3048\u308b\u3002"},"content":{"rendered":"<p><a href=\"https:\/\/www.ka-net.org\/blog\/?p=2833\" title=\"[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]\u30dc\u30bf\u30f3\u3084\u30e1\u30cb\u30e5\u30fc\u306e\u6709\u52b9\u30fb\u7121\u52b9\u3092\u5207\u308a\u66ff\u3048\u308b\u3002 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\u6570\u5e74\u524d\u306b\u66f8\u3044\u305f\u8a18\u4e8b<\/a>\u306b\u4e0b\u8a18\u30b3\u30e1\u30f3\u30c8\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>Excel\u306b\u3066\u3001\u30ea\u30dc\u30f3\u3001\u30dc\u30bf\u30f3\u3067\u306f\u306a\u304f\u3001\u30ea\u30dc\u30f3\u5185\u306e\u7279\u5b9a\u306e\u300c\u30b0\u30eb\u30fc\u30d7\u300d\u306b\u3064\u3044\u3066\u8868\u793a\/\u975e\u8868\u793a\u3092\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u306e\u30af\u30ea\u30c3\u30af\u64cd\u4f5c\u3067\u884c\u3046\u5834\u5408\u306eXML\u30b3\u30fc\u30c9\u3092\u6559\u3048\u3066\u4e0b\u3055\u3044\u3002<\/p><\/blockquote>\n<p>\u30b0\u30eb\u30fc\u30d7\u306b\u9650\u3089\u305a\u3001\u30ea\u30dc\u30f3\u4e0a\u306e\u5404\u8981\u7d20\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u52d5\u7684\u306b\u5207\u308a\u66ff\u3048\u305f\u3044\u5834\u5408\u306f<span style=\"color: #ff0000; font-weight: bold;\">getVisible<\/span>\u5c5e\u6027\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u8868\u793a\u72b6\u614b\u3092\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3067\u8a2d\u5b9a\u3057\u305f\u3044\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u3001toggleButton\u8981\u7d20\u306e<span style=\"color: #ff0000; font-weight: bold;\">getPressed<\/span>\u5c5e\u6027\u3067\u30dc\u30bf\u30f3\u306e\u62bc\u4e0b\u72b6\u614b\u3092\u8a2d\u5b9a\u3057\u3001<span style=\"color: #ff0000; font-weight: bold;\">onAction<\/span>\u5c5e\u6027\u3067\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u969b\u306e\u51e6\u7406\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">\u30ea\u30dc\u30f3XML<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\r\n&lt;customUI onLoad=&quot;rbnSample_onLoad&quot; xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/2006\/01\/customui&quot;&gt;\r\n  &lt;ribbon&gt;\r\n    &lt;tabs&gt;\r\n      &lt;tab id=&quot;tabSample&quot; label=&quot;Sample Tab&quot;&gt;\r\n        &lt;group id=&quot;grpSample1&quot; label=&quot;Group 1&quot; getVisible=&quot;grpSample_getVisible&quot;&gt;\r\n          &lt;button id=&quot;btnDummy1&quot; label=&quot;Button 1&quot; imageMso=&quot;HappyFace&quot; size=&quot;large&quot; \/&gt;\r\n          &lt;button id=&quot;btnDummy2&quot; label=&quot;Button 2&quot; imageMso=&quot;HappyFace&quot; size=&quot;large&quot; \/&gt;\r\n          &lt;button id=&quot;btnDummy3&quot; label=&quot;Button 3&quot; imageMso=&quot;HappyFace&quot; size=&quot;large&quot; \/&gt;\r\n          &lt;button id=&quot;btnDummy4&quot; label=&quot;Button 4&quot; imageMso=&quot;HappyFace&quot; size=&quot;large&quot; \/&gt;\r\n        &lt;\/group&gt;\r\n        &lt;group id=&quot;grpSample2&quot; label=&quot;Group 2&quot;&gt;\r\n          &lt;toggleButton id=&quot;tglSample&quot; label=&quot;\u8868\u793a\u30fb\u975e\u8868\u793a\u5207\u66ff&quot; imageMso=&quot;HappyFace&quot; size=&quot;large&quot; supertip=&quot;\u30b0\u30eb\u30fc\u30d7\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002&quot; onAction=&quot;tglSample_onAction&quot; getPressed=&quot;tglSample_getPressed&quot; \/&gt;\r\n        &lt;\/group&gt;\r\n      &lt;\/tab&gt;\r\n    &lt;\/tabs&gt;\r\n  &lt;\/ribbon&gt;\r\n&lt;\/customUI&gt;<\/pre>\n<h4 class=\"style4a\">VBA\u30b3\u30fc\u30c9(\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb)<\/h4>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate myRibbon As Office.IRibbonUI\r\nPrivate flg As Boolean\r\n\r\nPublic Sub rbnSample_onLoad(ribbon As IRibbonUI)\r\n  Set myRibbon = ribbon\r\n  flg = True\r\nEnd Sub\r\n\r\nPublic Sub grpSample_getVisible(control As IRibbonControl, ByRef returnedVal)\r\n  returnedVal = flg\r\nEnd Sub\r\n\r\nPublic Sub tglSample_onAction(control As IRibbonControl, pressed As Boolean)\r\n  flg = pressed\r\n  myRibbon.InvalidateControl &quot;grpSample1&quot;\r\nEnd Sub\r\n\r\nPublic Sub tglSample_getPressed(control As IRibbonControl, ByRef returnedVal)\r\n  returnedVal = flg\r\nEnd Sub<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u304c\u62bc\u4e0b\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u306e\u6642\u306b\u306f\u30b0\u30eb\u30fc\u30d7\u304c\u8868\u793a\u3055\u308c\u3001\u89e3\u9664\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u306e\u3068\u304d\u306f\u975e\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/group_getVisible_01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/group_getVisible_01.gif\" alt=\"\" width=\"513\" height=\"170\" class=\"alignnone size-full wp-image-11217\" \/><\/a><\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"\u6570\u5e74\u524d\u306b\u66f8\u3044\u305f\u8a18\u4e8b\u306b\u4e0b\u8a18\u30b3\u30e1\u30f3\u30c8\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002 Excel\u306b\u3066\u3001\u30ea\u30dc\u30f3\u3001\u30dc\u30bf\u30f3\u3067\u306f\u306a\u304f\u3001\u30ea\u30dc\u30f3\u5185\u306e\u7279\u5b9a\u306e\u300c\u30b0\u30eb\u30fc\u30d7\u300d\u306b\u3064\u3044\u3066\u8868\u793a\/\u975e\u8868\u793a\u3092\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u306e\u30af\u30ea\u30c3\u30af\u64cd\u4f5c\u3067\u884c\u3046\u5834\u5408\u306eXML\u30b3\u30fc\u30c9\u3092\u6559\u3048\u3066\u4e0b\u3055\u3044\u3002 \u30b0\u30eb\u30fc\u30d7\u306b [&hellip;]","protected":false},"author":1,"featured_media":7130,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[\u30ea\u30dc\u30f3\u30fb\u30ab\u30b9\u30bf\u30de\u30a4\u30ba]\u30b0\u30eb\u30fc\u30d7\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3067\u5207\u308a\u66ff\u3048\u308b]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,1],"tags":[],"class_list":["post-11216","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-ribbon"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Ribbon.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-2UU","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11216"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11216\/revisions"}],"predecessor-version":[{"id":11218,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11216\/revisions\/11218"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7130"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}