{"id":2782,"date":"2013-02-27T13:53:06","date_gmt":"2013-02-27T04:53:06","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=2782"},"modified":"2013-02-27T14:00:41","modified_gmt":"2013-02-27T05:00:41","slug":"office%e7%94%a8%e3%82%a2%e3%83%97%e3%83%aa%e3%83%97%e3%83%ad%e3%83%b3%e3%83%97%e3%83%88%e3%82%84%e9%81%b8%e6%8a%9e%e7%af%84%e5%9b%b2%e3%81%8b%e3%82%89%e3%83%90%e3%82%a4%e3%83%b3%e3%83%89%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=2782","title":{"rendered":"[Office\u7528\u30a2\u30d7\u30ea]\u30d7\u30ed\u30f3\u30d7\u30c8\u3084\u9078\u629e\u7bc4\u56f2\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3002"},"content":{"rendered":"<p>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=2135\" title=\"[Office\u7528\u30a2\u30d7\u30ea]\u4efb\u610f\u306e\u5834\u6240\u306b\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3059\u308b\u3002\" target=\"_blank\">[Office\u7528\u30a2\u30d7\u30ea]\u4efb\u610f\u306e\u5834\u6240\u306b\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3059\u308b\u3002<\/a>\u300d\u3067\u3001<span style=\"color: #ff0000; font-weight: bold;\">Bindings.addFromNamedItemAsync<\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u540d\u524d\u4ed8\u304d\u9805\u76ee\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u3092\u8ffd\u52a0\u3001\u30c7\u30fc\u30bf\u306e\u5165\u529b\u3092\u884c\u3046\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306f\u30d7\u30ed\u30f3\u30d7\u30c8\u3084\u9078\u629e\u7bc4\u56f2\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;meta charset=&quot;UTF-8&quot;&gt;\r\n        &lt;meta name=&quot;robots&quot; content=&quot;noindex,nofollow&quot;&gt;\r\n        &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;&gt;\r\n        &lt;title&gt;\u52d5\u4f5c\u78ba\u8a8d\u7528Office\u7528\u30a2\u30d7\u30ea&lt;\/title&gt;\r\n        &lt;script src=&quot;https:\/\/ajax.aspnetcdn.com\/ajax\/jquery\/jquery-1.9.1.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;https:\/\/appsforoffice.microsoft.com\/lib\/1.0\/hosted\/office.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script&gt;\r\n            Office.initialize = function(reason){}\r\n            $(function(){\r\n                \/\/\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u3092\u8ffd\u52a0(Excel\u306e\u307f)\r\n                $(&quot;#btnAddFromPrompt&quot;).click(function(){\r\n                    if(Office.context.document.bindings.addFromPromptAsync){\r\n                        Office.context.document.bindings.addFromPromptAsync(Office.BindingType.Text, {id: &quot;bdgPrompt&quot;, promptText: &quot;\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002&quot;}, function(asyncResult){\r\n                            if(asyncResult.status == Office.AsyncResultStatus.Failed){\r\n                                $(&quot;#msg&quot;).text(&quot;Err:&quot; + asyncResult.error.message);\r\n                            }else{\r\n                                $(&quot;#msg&quot;).text(&quot;Type:&quot; + asyncResult.value.type + &quot;, ID:&quot; + asyncResult.value.id);\r\n                                Office.select(&quot;bindings#bdgPrompt&quot;).getDataAsync({coercionType: Office.CoercionType.Text, valueFormat: Office.ValueFormat.Formatted}, function(asyncResult){\r\n                                    if (asyncResult.status == Office.AsyncResultStatus.Failed) {\r\n                                        $(&quot;#msg&quot;).text(&quot;Err:&quot; + asyncResult.error.message);\r\n                                    }else{\r\n                                        $(&quot;#result&quot;).text(&quot;Value:&quot; + asyncResult.value);\r\n                                    }\r\n                                });\r\n                            }\r\n                        });\r\n                    }else{\r\n                        $(&quot;#msg&quot;).text(&quot;Bindings.addFromPromptAsync\u30e1\u30bd\u30c3\u30c9\u306fExcel\u306e\u307f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002&quot;);\r\n                    }\r\n                });\r\n                \r\n                \/\/\u9078\u629e\u7bc4\u56f2\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u3092\u8ffd\u52a0\r\n                $(&quot;#btnAddFromSelection&quot;).click(function(){\r\n                    Office.context.document.bindings.addFromSelectionAsync(Office.BindingType.Text, {id: &quot;bdgSelection&quot;}, function(asyncResult){\r\n                        if(asyncResult.status == Office.AsyncResultStatus.Failed){\r\n                            $(&quot;#msg&quot;).text(&quot;Err:&quot; + asyncResult.error.message);\r\n                        }else{\r\n                            $(&quot;#msg&quot;).text(&quot;Type:&quot; + asyncResult.value.type + &quot;, ID:&quot; + asyncResult.value.id);\r\n                            Office.select(&quot;bindings#bdgSelection&quot;).getDataAsync({coercionType: Office.CoercionType.Text, valueFormat: Office.ValueFormat.Formatted}, function(asyncResult){\r\n                                if (asyncResult.status == Office.AsyncResultStatus.Failed) {\r\n                                    $(&quot;#msg&quot;).text(&quot;Err:&quot; + asyncResult.error.message);\r\n                                }else{\r\n                                    $(&quot;#result&quot;).text(&quot;Value:&quot; + asyncResult.value);\r\n                                }\r\n                            });\r\n                        }\r\n                    });\r\n                });\r\n                \r\n            });\r\n        &lt;\/script&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;input id=&quot;btnAddFromPrompt&quot; type=&quot;button&quot; value=&quot;\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u8ffd\u52a0&quot;&gt;&lt;br&gt;\r\n        &lt;input id=&quot;btnAddFromSelection&quot; type=&quot;button&quot; value=&quot;\u9078\u629e\u7bc4\u56f2\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u8ffd\u52a0&quot;&gt;&lt;br&gt;&lt;br&gt;\r\n        &lt;span id=&quot;result&quot;&gt;&lt;\/span&gt;&lt;br&gt;&lt;br&gt;\r\n        &lt;textarea id=&quot;msg&quot; rows=&quot;4&quot; cols=&quot;30&quot;&gt;&lt;\/textarea&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_38_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_38_01-300x244.jpg\" alt=\"\" title=\"Office2013_38_01\" width=\"300\" height=\"244\" class=\"alignnone size-medium wp-image-2783\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_38_01-300x244.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_38_01-290x235.jpg 290w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_38_01-150x122.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_38_01.jpg 756w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u306e\u901a\u308a<span style=\"color: #ff0000; font-weight: bold;\">Bindings.addFromPromptAsync<\/span>\u30e1\u30bd\u30c3\u30c9(Excel\u306e\u307f)\u3067\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u3001<span style=\"color: #ff0000; font-weight: bold;\">Bindings.addFromSelectionAsync<\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u9078\u629e\u7bc4\u56f2\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u524d\u7d39\u4ecb\u3057\u305f<span style=\"color: #ff0000; font-weight: bold;\">Bindings.addFromNamedItemAsync<\/span>\u30e1\u30bd\u30c3\u30c9\u3068\u5408\u308f\u305b\u3066\u3001\u30d0\u30a4\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u305f\u3044\u3068\u304d\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4f7f\u3044\u5206\u3051\u308b\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\u30fb\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u307e\u305f\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u5185\u306e\u9818\u57df\u3078\u306e\u30d0\u30a4\u30f3\u30c9<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp123511.aspx\" title=\"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u307e\u305f\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u5185\u306e\u9818\u57df\u3078\u306e\u30d0\u30a4\u30f3\u30c9\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp123511.aspx<\/a><br \/>\n<strong>\u30fbBindings.addFromNamedItemAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp123590.aspx\" title=\"Bindings.addFromNamedItemAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp123590.aspx<\/a><br \/>\n<strong>\u30fbBindings.addFromPromptAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp142150.aspx\" title=\"Bindings.addFromPromptAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp142150.aspx<\/a><br \/>\n<strong>\u30fbBindings.addFromSelectionAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp142282.aspx\" title=\"Bindings.addFromSelectionAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp142282.aspx<\/a><br \/>\n<strong>\u30fbBinding.getDataAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp161073.aspx\" title=\"Binding.getDataAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp161073.aspx<\/a><br \/>\n<strong>\u30fbBinding.setDataAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp161120.aspx\" title=\"Binding.setDataAsync \u30e1\u30bd\u30c3\u30c9 (Office \u7528\u30a2\u30d7\u30ea)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp161120.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u300c[Office\u7528\u30a2\u30d7\u30ea]\u4efb\u610f\u306e\u5834\u6240\u306b\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3059\u308b\u3002\u300d\u3067\u3001Bindings.addFromNamedItemAsync\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u540d\u524d\u4ed8\u304d\u9805\u76ee\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u3092\u8ffd\u52a0\u3001\u30c7\u30fc\u30bf\u306e\u5165\u529b\u3092\u884c\u3046\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306f\u30d7\u30ed [&hellip;]","protected":false},"author":1,"featured_media":7119,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[130,4,79],"tags":[77],"class_list":["post-2782","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps-for-office","category-office","category-office2013","tag-apps-for-office"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeAddins.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-IS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2782","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=2782"}],"version-history":[{"count":6,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2782\/revisions"}],"predecessor-version":[{"id":2790,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2782\/revisions\/2790"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7119"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}