{"id":2308,"date":"2012-10-04T10:02:25","date_gmt":"2012-10-04T01:02:25","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=2308"},"modified":"2013-08-27T16:58:13","modified_gmt":"2013-08-27T07:58:13","slug":"powerpointapplication%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%81%ae%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%82%92%e5%88%a9%e7%94%a8%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=2308","title":{"rendered":"[PowerPoint]Application\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u5229\u7528\u3059\u308b"},"content":{"rendered":"<p>PowerPoint\u306eApplication\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u3001\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u304c\u958b\u59cb\u3055\u308c\u305f\u3068\u304d\u306b\u767a\u751f\u3059\u308b\u300c<span style=\"color: #ff0000; font-weight: bold;\">SlideShowBegin<\/span>\u300d\u3084\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u304c\u7d42\u4e86\u3057\u305f\u3068\u304d\u306b\u767a\u751f\u3059\u308b\u300c<span style=\"color: #ff0000; font-weight: bold;\">SlideShowEnd<\/span>\u300d\u7b49\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3089\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u5229\u7528\u3057\u305f\u30de\u30af\u30ed\u3092\u66f8\u304f\u65b9\u6cd5\u306f\u300c<a href=\"http:\/\/support.microsoft.com\/kb\/234184\/ja\" title=\"PPT2000 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30ec\u30d9\u30eb\u306e\u30a4\u30d9\u30f3\u30c8 \u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" target=\"_blank\">PPT2000 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30ec\u30d9\u30eb\u306e\u30a4\u30d9\u30f3\u30c8 \u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/a>\u300d\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u901a\u308a\u3067\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">WithEvents<\/span>\u300d\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u30fb\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb(\u540d\u524d:Class1)<\/strong><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPublic WithEvents App As PowerPoint.Application\r\n\r\nPrivate Sub App_WindowBeforeRightClick(ByVal Sel As Selection, Cancel As Boolean)\r\n'\u203b \u56f3\u5f62\u3084\u30b9\u30e9\u30a4\u30c9\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u767a\u751f\u3059\u308b\u30a4\u30d9\u30f3\u30c8\r\n  Cancel = True\r\n  MsgBox &quot;WindowBeforeRightClick&quot;\r\nEnd Sub<\/pre>\n<p>\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb(\u540d\u524d:Class1)\u3092\u633f\u5165\u3057\u3066\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u3001\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u633f\u5165\u3057\u3066\u4e0b\u8a18\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u305f\u5f8c\u3001\u300c<strong>Sample<\/strong>\u300d\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<\/p>\n<p><strong>\u30fb\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate cls As Class1\r\n\r\nPublic Sub Sample()\r\n  Set cls = New Class1\r\n  Set cls.App = Application\r\nEnd Sub<\/pre>\n<p>\u4e0b\u56f3\u306e\u3088\u3046\u306b\u56f3\u5f62\u3084\u30b9\u30e9\u30a4\u30c9\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306bWindowBeforeRightClick\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_01-300x204.jpg\" alt=\"\" title=\"PptAppEvent_01\" width=\"300\" height=\"204\" class=\"alignnone size-medium wp-image-2309\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_01-300x204.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_01-290x198.jpg 290w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_01-150x102.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_01.jpg 839w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u5b9f\u884c\u6642\u306b\u4f55\u304b\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3057\u305f\u3044\u3001\u3068\u3044\u3063\u305f\u5834\u5408\u306b\u306f\u5fc5\u8981\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u3044\u3066\u640d\u306f\u7121\u3044\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4e21\u65b9\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u4f55\u3068\u306a\u304f\u9762\u5012\u304f\u3055\u3044\uff01\u3068\u3044\u3046\u65b9\u306b\u306f\u4e0b\u8a18\u306e\u65b9\u6cd5\u304c\u304a\u85a6\u3081\u3067\u3059\u3002<\/p>\n<p>\u300c<strong>\u958b\u767a<\/strong>\u300d\u30bf\u30d6\u304b\u3089\u300c<strong>\u30b3\u30de\u30f3\u30c9 \u30dc\u30bf\u30f3 (ActiveX \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb)<\/strong>\u300d(\u4ed6\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u3082\u53ef)\u3092\u633f\u5165\u3059\u308b\u3068(2007\u4ee5\u964d\u306e\u5834\u5408)\u3001VBAProject\u306b\u300c<span style=\"color: #ff0000; font-weight: bold;\">Slide1<\/span>\u300d\u30e2\u30b8\u30e5\u30fc\u30eb(Microsoft PowerPoint Objects\u4ee5\u4e0b)\u304c\u81ea\u52d5\u7684\u306b\u633f\u5165\u3055\u308c\u307e\u3059(\u633f\u5165\u5f8c\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u524a\u9664\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093)\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_02-300x205.jpg\" alt=\"\" title=\"PptAppEvent_02\" width=\"300\" height=\"205\" class=\"alignnone size-medium wp-image-2310\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_02-300x205.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_02-290x198.jpg 290w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_02-150x102.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_02.jpg 839w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_03.jpg\" alt=\"\" title=\"PptAppEvent_03\" width=\"218\" height=\"52\" class=\"alignnone size-full wp-image-2311\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_03.jpg 218w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/PptAppEvent_03-150x35.jpg 150w\" sizes=\"auto, (max-width: 218px) 100vw, 218px\" \/><\/a><\/p>\n<p>\u3053\u306e\u300c<span style=\"color: #ff0000; font-weight: bold;\">Slide1<\/span>\u300d\u306fExcel\u3067\u3044\u3046\u3068\u3053\u308d\u306e\u300c<span style=\"color: #ff0000; font-weight: bold;\">Sheet1<\/span>\u300d\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3001\u3053\u306e\u4e2d\u3067WithEvents\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059(\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u306a\u306e\u3067)\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u4e0a\u3067\u6319\u3052\u305f\u3088\u3046\u306b\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u7121\u304f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bSlide1.Sample\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u547c\u3073\u51fa\u305b\u3070\u3001Application\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u30fbSlide1\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate WithEvents App As PowerPoint.Application\r\n\r\nPublic Sub Sample()\r\n  Set App = Application\r\nEnd Sub\r\n\r\nPrivate Sub App_WindowBeforeRightClick(ByVal Sel As Selection, Cancel As Boolean)\r\n  Cancel = True\r\n  MsgBox &quot;WindowBeforeRightClick&quot;\r\nEnd Sub<\/pre>\n<p>\u3055\u3089\u306b\u3001<a href=\"\/\/www.ka-net.org\/blog\/?p=2301\" title=\"[PowerPoint]\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u958b\u3044\u305f\u3068\u304d\u306b\u81ea\u52d5\u7684\u306b\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u7d39\u4ecb\u3057\u305fcustomUI\u8981\u7d20\u306eonLoad\u5c5e\u6027\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u958b\u3044\u305f\u3068\u304d\u304b\u3089Application\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u30fbXML<\/strong><\/p>\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;Slide1.Ribbon_onLoad&quot; xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/2006\/01\/customui&quot; \/&gt;<\/pre>\n<p><strong>\u30fbSlide1\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate WithEvents App As PowerPoint.Application\r\n\r\nPublic Sub Ribbon_onLoad(ribbon As IRibbonUI)\r\n  Set App = Application\r\nEnd Sub\r\n\r\nPrivate Sub App_WindowBeforeRightClick(ByVal Sel As Selection, Cancel As Boolean)\r\n  Cancel = True\r\n  MsgBox &quot;WindowBeforeRightClick&quot;\r\nEnd Sub<\/pre>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4e00\u3064\u306b\u307e\u3068\u3081\u305f\u3044\u5834\u5408\u306b\u306f\u6709\u52b9\u306a\u65b9\u6cd5\u3060\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u662f\u975e\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"PowerPoint\u306eApplication\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u3001\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u304c\u958b\u59cb\u3055\u308c\u305f\u3068\u304d\u306b\u767a\u751f\u3059\u308b\u300cSlideShowBegin\u300d\u3084\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u304c\u7d42\u4e86\u3057\u305f\u3068\u304d\u306b\u767a\u751f\u3059\u308b\u300cSlideShowEnd\u300d\u7b49\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u7528\u610f [&hellip;]","protected":false},"author":1,"featured_media":7125,"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":[4,58],"tags":[90,91],"class_list":["post-2308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-powerpoint","tag-powerpoint-vba","tag-powerpoint-"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-PowerPoint.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-Be","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2308","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=2308"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2308\/revisions"}],"predecessor-version":[{"id":2313,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2308\/revisions\/2313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7125"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}