{"id":4585,"date":"2014-07-08T14:00:42","date_gmt":"2014-07-08T05:00:42","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4585"},"modified":"2014-07-08T14:00:42","modified_gmt":"2014-07-08T05:00:42","slug":"%e7%b5%84%e3%81%bf%e8%be%bc%e3%81%bf%e5%ae%9a%e6%95%b0%e3%82%92%e5%88%97%e6%8c%99%e3%81%99%e3%82%8bvba%e3%83%9e%e3%82%af%e3%83%ad","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4585","title":{"rendered":"\u7d44\u307f\u8fbc\u307f\u5b9a\u6570\u3092\u5217\u6319\u3059\u308bVBA\u30de\u30af\u30ed"},"content":{"rendered":"<p>\u5b9a\u6570\u306e\u540d\u524d\u3084\u5024\u3092\u8abf\u3079\u305f\u3044\u3001\u305d\u3093\u306a\u3068\u304d\u306f<span style=\"color: #ff0000; font-weight: bold;\">TypeLib Information<\/span>(tlbinf32.dll)\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPublic Sub Sample()\r\n'TypeLib Information(tlbinf32.dll)\u8981\u53c2\u7167\r\n  Dim ta As TLI.TLIApplication\r\n  Dim ci As TLI.ConstantInfo\r\n  Dim mi As TLI.MemberInfo\r\n  \r\n  Set ta = New TLI.TLIApplication\r\n  With ta.TypeLibInfoFromFile(&quot;MSPPT.OLB&quot;)\r\n    For Each ci In .Constants\r\n      For Each mi In ci.Members\r\n        Debug.Print ci.Name, mi.Name, mi.Value\r\n      Next\r\n    Next\r\n  End With\r\nEnd Sub<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/TypeLib_01_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/TypeLib_01_01.jpg\" alt=\"TypeLib_01_01\" width=\"936\" height=\"263\" class=\"alignnone size-full wp-image-4586\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/TypeLib_01_01.jpg 936w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/TypeLib_01_01-300x84.jpg 300w\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" \/><\/a><\/p>\n<p>TypeLibInfoFromFile\u30e1\u30bd\u30c3\u30c9\u306f\u5f15\u6570\u306b\u30e9\u30a4\u30d6\u30e9\u30ea(\u305f\u3068\u3048\u3070PowerPoint\u306e\u5834\u5408\u306f<span style=\"color: #ff0000; font-weight: bold;\">MSPPT.OLB<\/span>\u30d5\u30a1\u30a4\u30eb)\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30af\u30e9\u30b9\u540d\u3092\u6307\u5b9a\u3057\u3066\u8abf\u3079\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Public Sub Sample2()\r\n'TypeLib Information(tlbinf32.dll)\u8981\u53c2\u7167\r\n  Dim ta As TLI.TLIApplication\r\n  Dim mi As TLI.MemberInfo\r\n  \r\n  Set ta = New TLI.TLIApplication\r\n  For Each mi In ta.TypeLibInfoFromFile(&quot;MSPPT.OLB&quot;) _\r\n                   .Constants.NamedItem(&quot;PpSlideLayout&quot;).Members\r\n    Debug.Print mi.Name, mi.Value\r\n  Next\r\nEnd Sub<\/pre>\n<p><a href=\"http:\/\/download.microsoft.com\/download\/win2000platform\/oleview\/1.00.0.1\/nt5\/en-us\/oleview_setup.exe\" title=\"OLE\/COM Object Viewer\" target=\"_blank\">OLE\/COM Object Viewer<\/a>\u3092\u4f7f\u3046\u3068\u7c21\u5358\u306b\u4e00\u89a7\u8868\u793a\u3067\u304d\u308b\u306e\u3067\u3001TypeLib Information\u3092\u5229\u7528\u3057\u305f\u30de\u30af\u30ed\u3092\u4f7f\u3046\u6a5f\u4f1a\u3082\u306a\u304b\u306a\u304b\u7121\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u201c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3055\u308c\u308b\u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u30fc\u3092\u66f8\u304d\u51fa\u3057\u305f\u3044\u201d<\/span>\u3001\u306a\u3093\u3066\u3068\u304d\u306f\u5f79\u7acb\u3064\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/TypeLib_01_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/TypeLib_01_02.jpg\" alt=\"TypeLib_01_02\" width=\"782\" height=\"654\" class=\"alignnone size-full wp-image-4587\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/TypeLib_01_02.jpg 782w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/TypeLib_01_02-300x250.jpg 300w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<h4>\u25a0 \u95a2\u9023Web\u30da\u30fc\u30b8<\/h4>\n<ul>\n<li>Office \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7d44\u307f\u8fbc\u307f\u5b9a\u6570\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/support.microsoft.com\/kb\/239930\/ja\" target=\"_blank\" title=\"Office \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7d44\u307f\u8fbc\u307f\u5b9a\u6570\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\">http:\/\/support.microsoft.com\/kb\/239930\/ja<\/a><\/li>\n<li>\u53d6\u5f97\u30b5\u30f3\u30d7\u30eb: CLSNMMBR.EXE \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u7528\u3057\u307e\u3059 DLL \u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u30fc<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/support.microsoft.com\/kb\/172988\" target=\"_blank\" title=\"\u53d6\u5f97\u30b5\u30f3\u30d7\u30eb: CLSNMMBR.EXE \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u7528\u3057\u307e\u3059 DLL \u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u30fc\">http:\/\/support.microsoft.com\/kb\/172988<\/a><\/li>\n<li>Visual Basic: Inspect COM Components Using the TypeLib Information Object Library<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/msdn.microsoft.com\/en-us\/magazine\/bb985086.aspx\" target=\"_blank\" title=\"Visual Basic: Inspect COM Components Using the TypeLib Information Object Library\">http:\/\/msdn.microsoft.com\/en-us\/magazine\/bb985086.aspx<\/a><\/li>\n<li>Windows 2000 \u30ea\u30bd\u30fc\u30b9 \u30ad\u30c3\u30c8\u306e\u30c4\u30fc\u30eb\u306e\u7ba1\u7406\u30bf\u30b9\u30af<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/support.microsoft.com\/kb\/927229\/ja\" target=\"_blank\" title=\"Windows 2000 \u30ea\u30bd\u30fc\u30b9 \u30ad\u30c3\u30c8\u306e\u30c4\u30fc\u30eb\u306e\u7ba1\u7406\u30bf\u30b9\u30af\">http:\/\/support.microsoft.com\/kb\/927229\/ja<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u5b9a\u6570\u306e\u540d\u524d\u3084\u5024\u3092\u8abf\u3079\u305f\u3044\u3001\u305d\u3093\u306a\u3068\u304d\u306fTypeLib Information(tlbinf32.dll)\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 Option Explicit Public Sub Sample() &#8216;T [&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":[4,48,49],"tags":[],"class_list":["post-4585","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office","category-word-office"],"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-1bX","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4585","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=4585"}],"version-history":[{"count":6,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4585\/revisions"}],"predecessor-version":[{"id":4593,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4585\/revisions\/4593"}],"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=4585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}