{"id":1214,"date":"2012-01-25T14:13:34","date_gmt":"2012-01-25T05:13:34","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=1214"},"modified":"2012-02-15T00:16:19","modified_gmt":"2012-02-14T15:16:19","slug":"%e5%8f%b3%e3%82%af%e3%83%aa%e3%83%83%e3%82%af%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%92%e9%9d%9e%e8%a1%a8%e7%a4%ba%e3%81%ab%e3%81%99%e3%82%8bexcel%e3%83%9e%e3%82%af%e3%83%ad","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=1214","title":{"rendered":"\u53f3\u30af\u30ea\u30c3\u30af\u30e1\u30cb\u30e5\u30fc\u3092\u975e\u8868\u793a\u306b\u3059\u308bExcel\u30de\u30af\u30ed"},"content":{"rendered":"<p>Answers\u306b<a href=\"http:\/\/j.mp\/zhHqMl\" title=\"\u633f\u5165\u3057\u305f\u56f3\u5f62\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u305f\u6642\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u30de\u30af\u30ed\u3067\u975e\u8868\u793a\u3068\u3057\u305f\u3044\u3002\" target=\"_blank\">\u56f3\u5f62\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u30de\u30af\u30ed\u3067\u975e\u8868\u793a\u306b\u3057\u305f\u3044<\/a>\u3001\u3068\u306e\u8cea\u554f\u304c\u3042\u3063\u305f\u306e\u3067\u7c21\u5358\u306b\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b \u4e0b\u8a18\u30b3\u30fc\u30c9\u306fExcel 2010\u3067\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #ff0000; font-weight: bold;\">\u203b 2007\u3067\u306f\u691c\u8a3c\u3057\u3066\u3044\u307e\u305b\u3093\u304c2003\u3067\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #ff0000; font-weight: bold;\">\u203b \u4ed5\u69d8\u4e0a\u3001\u4e00\u77ac\u3060\u3051\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">'ThisWorkbook\u306b\u8a18\u8ff0\r\nOption Explicit\r\n\r\nPrivate Declare Function DestroyWindow Lib &quot;user32&quot; (ByVal hWnd As Long) As Long\r\nPrivate Declare Function GetClassName Lib &quot;user32&quot; Alias &quot;GetClassNameA&quot; (ByVal hWnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long\r\nPrivate Declare Function GetLastActivePopup Lib &quot;user32&quot; (ByVal hWndOwnder As Long) As Long\r\n\r\nPrivate WithEvents Cbars As CommandBars\r\n\r\nPrivate Sub Workbook_Open()\r\n  Set Cbars = Application.CommandBars\r\nEnd Sub\r\n\r\nPrivate Sub Workbook_BeforeClose(Cancel As Boolean)\r\n  Set Cbars = Nothing\r\nEnd Sub\r\n\r\nPrivate Sub Cbars_OnUpdate()\r\n  Dim s As String * 255\r\n  Dim clsName As String\r\n  Dim h As Long\r\n  \r\n  h = GetLastActivePopup(Application.hWnd)\r\n  GetClassName h, s, Len(s)\r\n  clsName = Left$(s, InStr(s, vbNullChar) - 1&amp;)\r\n  If clsName = &quot;Net UI Tool Window&quot; Then\r\n    DestroyWindow h '\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u7834\u68c4\r\n  End If\r\nEnd Sub<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelContextPopup_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelContextPopup_01-150x150.jpg\" alt=\"\" title=\"ExcelContextPopup_01\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-1215\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelContextPopup_01-150x150.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelContextPopup_01-75x75.jpg 75w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u306fCommandBars\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e<strong>OnUpdate\u30a4\u30d9\u30f3\u30c8<\/strong>\u3092\u5229\u7528\u3057\u3066\u3001\u53f3\u30af\u30ea\u30c3\u30af\u30e1\u30cb\u30e5\u30fc(\u30a6\u30a3\u30f3\u30c9\u30a6)\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u305d\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u7834\u68c4\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u52d5\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u306e\u307e\u307e\u3060\u3068\u30bb\u30eb\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u305f\u969b\u306e\u30e1\u30cb\u30e5\u30fc\u3082\u7834\u68c4\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u56f3\u5f62\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u7834\u68c4\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b\u5224\u5b9a\u3092\u4ed8\u3051\u308c\u3070\u51e6\u7406\u3067\u304d\u308b\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">If TypeName(Selection) &lt;&gt; &quot;Range&quot; Then\r\n  DestroyWindow h '\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u7834\u68c4\r\nEnd If<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelContextPopup_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelContextPopup_02-150x150.jpg\" alt=\"\" title=\"ExcelContextPopup_02\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-1216\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelContextPopup_02-150x150.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelContextPopup_02-75x75.jpg 75w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><\/p>\n<p>\u305f\u3060\u4e0a\u8a18\u306e\u51e6\u7406\u306f\u3042\u304f\u307e\u3067\u3082\u7c21\u6613\u7684\u306a\u3082\u306e\u306a\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u3092\u5236\u9650\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001\u4e0b\u8a18Web\u30da\u30fc\u30b8\u306b\u3042\u308b\u3088\u3046\u306b\u30e1\u30cb\u30e5\u30fc\u9805\u76ee\u305d\u306e\u3082\u306e\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u30fb\u7121\u52b9\u5316\u3059\u308b\u304b\u3001\u30b7\u30fc\u30c8\u3084\u30d6\u30c3\u30af\u3092\u4fdd\u8b77\u3059\u308b\u3001\u3042\u308b\u3044\u306f\u6c7a\u3081\u3089\u308c\u305f\u64cd\u4f5c\u4ee5\u5916\u3092\u884c\u308f\u306a\u3044\u3088\u3046\u30e6\u30fc\u30b6\u30fc\u306b\u901a\u9054\u7b49\u3057\u3066\u904b\u7528\u4e0a\u3067\u5bfe\u5fdc\u3057\u305f\u65b9\u304c\u78ba\u5b9f\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u300c\u7279\u5b9a\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u7121\u52b9\u306b\u3059\u308b(Office 2007,2010)\u300d<\/strong><br \/>\n<a href=\"\/\/www.ka-net.org\/office\/of35.html\" title=\"\u7279\u5b9a\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u7121\u52b9\u306b\u3059\u308b(Office 2007,2010)\" target=\"_blank\">\/\/www.ka-net.org\/office\/of35.html<\/a><br \/>\n<strong>\u300c\u7279\u5b9a\u306e\u6a5f\u80fd\u3092\u5229\u7528\u7981\u6b62\u306b\u3059\u308b\u300d<\/strong><br \/>\n<a href=\"\/\/www.ka-net.org\/ribbon\/ri21.html\" title=\"\u7279\u5b9a\u306e\u6a5f\u80fd\u3092\u5229\u7528\u7981\u6b62\u306b\u3059\u308b\" target=\"_blank\">\/\/www.ka-net.org\/ribbon\/ri21.html<\/a><br \/>\n<strong>\u300c\u53f3\u30af\u30ea\u30c3\u30af\u30e1\u30cb\u30e5\u30fc\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b(Word 2010)\u300d<\/strong><br \/>\n<a href=\"\/\/www.ka-net.org\/ribbon\/ri36.html\" title=\"\u53f3\u30af\u30ea\u30c3\u30af\u30e1\u30cb\u30e5\u30fc\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b(Word 2010)\" target=\"_blank\">\/\/www.ka-net.org\/ribbon\/ri36.html<\/a><\/p>\n<p>\u500b\u4eba\u7684\u306b\u306f\u3001\u30de\u30af\u30ed\u3067\u51dd\u3063\u305f\u5236\u9650\u3092\u639b\u3051\u308b\u3088\u308a\u306f\u4fdd\u8b77\u3084\u904b\u7528\u4e0a\u3067\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u3092\u304a\u85a6\u3081\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Answers\u306b\u56f3\u5f62\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u30de\u30af\u30ed\u3067\u975e\u8868\u793a\u306b\u3057\u305f\u3044\u3001\u3068\u306e\u8cea\u554f\u304c\u3042\u3063\u305f\u306e\u3067\u7c21\u5358\u306b\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002 \u203b \u4e0b\u8a18\u30b3\u30fc\u30c9\u306fExcel 2010\u3067\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3057\u305f\u3002 \u203b 2007\u3067\u306f\u691c\u8a3c\u3057\u3066\u3044\u307e\u305b\u3093 [&hellip;]","protected":false},"author":1,"featured_media":7111,"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":[48,4],"tags":[35,46,11],"class_list":["post-1214","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel-office","category-office","tag-35","tag-excel","tag-office-2"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Excel.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-jA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1214","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=1214"}],"version-history":[{"count":5,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1214\/revisions"}],"predecessor-version":[{"id":1251,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1214\/revisions\/1251"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7111"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}