{"id":344,"date":"2012-04-17T17:30:38","date_gmt":"2012-04-17T08:30:38","guid":{"rendered":"http:\/\/kadoya.tk\/?p=344"},"modified":"2013-12-19T17:20:24","modified_gmt":"2013-12-19T08:20:24","slug":"minitemplator-vba%e3%81%a7%e4%bd%bf%e3%81%88%e3%82%8b%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%82%a8%e3%83%b3%e3%82%b8%e3%83%b3","status":"publish","type":"post","link":"https:\/\/wasuke.shioya.jp.net\/?p=344","title":{"rendered":"MiniTemplator VBA\u3067\u4f7f\u3048\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3"},"content":{"rendered":"<div>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft  wp-image-346\" title=\"a0001_013573\" alt=\"minitemplator\" src=\"https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/a0001_013573.jpg\" width=\"481\" height=\"319\" srcset=\"https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/a0001_013573.jpg 481w, https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/a0001_013573-300x198.jpg 300w, https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/a0001_013573-424x281.jpg 424w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/> \u77e5\u4eba\u304b\u3089\u3001\u300c\u540c\u3058\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306eHTML\u30da\u30fc\u30b8\u3092\u5927\u91cf\uff08\u7d04500\u30da\u30fc\u30b8\uff09\u4f5c\u308a\u305f\u3044\u3093\u3058\u3083\u3051\u3069\u3001\u4f55\u304b\u826f\u3044\u65b9\u6cd5\u306a\u3044\uff1f\u300d<br \/> \u3068\u76f8\u8ac7\u3092\u53d7\u3051\u307e\u3057\u305f\u3002<\/p>\n<p>\u5185\u5bb9\u306f\u3053\u3046\u3002<\/p>\n<p><!--more--><\/p>\n<div>\u8981\u306f\u6a5f\u68b0\u306e\u30ab\u30bf\u30ed\u30b0\u30da\u30fc\u30b8\u3092\u4f5c\u308a\u305f\u3044\u3002<\/div>\n<div>\u30a8\u30af\u30bb\u30eb\u306e\u30d6\u30c3\u30af\u306b\u3001\u300c\u6a5f\u68b0\u306e\u540d\u79f0\u300d\u300c\u6a5f\u68b0\u30ab\u30bf\u30ed\u30b0\u306ePDF\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u300d\u300c\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u300d\u304c\u3042\u308b\u3002<\/div>\n<div>\u3053\u308c\u3092\u5143\u306b\u3057\u3066\u4e00\u62ec\u3067HTML\u3092\u51fa\u529b\u3057\u305f\u3044<\/div>\n<div>\u3068\u306e\u3053\u3068\u3067\u3057\u305f\u3002<\/div>\n<div>\u00a0<\/div>\n<div>\u3053\u3053\u307e\u3067\u805e\u3044\u3066Wordpress\u3092\u52e7\u3081\u307e\u3057\u305f\u304c\u3001\u53cb\u4eba\u306fHTML\u3058\u3083\u306a\u3044\u3068\u30c7\u30b6\u30a4\u30f3\u3067\u304d\u306a\u3044\u306e\u3067HTML\u3067\u3057\u305f\u3044\u3002\u3068\u8a00\u3044\u307e\u3059\u3002<\/div>\n<div>\u53cb\u4eba\u304c\u30c7\u30b6\u30a4\u30f3\u3057\u305fHTML\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u540c\u3058\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306eHTML\u306e\u30da\u30fc\u30b8\u3092\u4e00\u62ec\u3067\u51fa\u529b\u3057\u305f\u3044<\/div>\n<div>\u3068\u306e\u3053\u3068\u3067\u3057\u305f\u3002<\/div>\n<div><a href=\"https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/20120417-01-300x181.png\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-345\" title=\"20120417-01\" alt=\"\u30a4\u30e1\u30fc\u30b8\u56f3\" src=\"https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/20120417-01-300x181.png\" width=\"300\" height=\"181\" srcset=\"https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/20120417-01-300x181.png 300w, https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/20120417-01-424x256.png 424w, https:\/\/wasuke.shioya.jp.net\/wp\/wp-content\/uploads\/2012\/04\/20120417-01.png 619w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div>\u307e\u3042\u3001HTML\u81ea\u4f53\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067VBA\u3067\u51fa\u529b\u3059\u308c\u3070\u7c21\u5358\u306a\u306e\u3067\u3059\u304c\u3001HTML\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u5dee\u3057\u8fbc\u3080\u306e\u304c\u9762\u5012\u304f\u3055\u305d\u3046\u3002<\/div>\n<div>\u5b9f\u969b\u3001\u4e00\u304b\u3089\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u3063\u3066\u3084\u3063\u3066\u307f\u308b\u3068\u9762\u5012\u304f\u3055\u3044\u3053\u3068\u3053\u306e\u4e0a\u306a\u3044\u3002<\/div>\n<div>\u00a0<\/div>\n<div>\u305d\u3053\u3067VBA\u3067\u4f7f\u3048\u308bHTML\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3092\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/div>\n<div>\u00a0<\/div>\n<div>\u898b\u3064\u3051\u307e\u3057\u305f\u3002\u300c<a title=\"minitemplator\" href=\"http:\/\/www.source-code.biz\/MiniTemplator\/\" target=\"_blank\">MiniTemplator<\/a>\u300d<\/div>\n<div>VBA\u4ee5\u5916\u306b\u3082JAVA\u306a\u3069\u4f55\u7a2e\u985e\u304b\u306e\u8a00\u8a9e\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/div>\n<div>\u82f1\u8a9e\u306e\u30b5\u30a4\u30c8\u3067\u3088\u304f\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001google\u5148\u751f\u3067\u60c5\u5831\u3092\u691c\u7d22\u3057\u306a\u304c\u3089\u8a66\u884c\u932f\u8aa4\u3002<br \/>\u4f55\u3068\u304bVBA\u3067\u306e\u51fa\u529b\u304c\u51fa\u6765\u307e\u3057\u305f\u3002<\/div>\n<\/div>\n<div><!--more-->\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\u307e\u305a\u3001\u300c<a title=\"minitemplator\" href=\"http:\/\/www.source-code.biz\/MiniTemplator\/\" target=\"_blank\">MiniTemplator<\/a>\u300d\u304b\u3089\u300cVisual Basic (VB\/VBA) Version\u300d\u306e <a href=\"http:\/\/www.source-code.biz\/MiniTemplator\/vbasic\/MiniTemplator_vbasic.zip\"><b>MiniTemplator_vbasic.zip<\/b><\/a> \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fzip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u3066\u3001\u300cMiniTemplator.cls\u300d\u3092VisualBASICEditor\u306e\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/div>\n<div>\u6b21\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u307e\u3059\u3002<br \/>\u5f62\u5f0f\u306fhtml\u3002\u307e\u305a&lt;!&#8211; $BeginBlock block1 &#8211;&gt;\u3068&lt;!&#8211; $EndBlock block1 &#8211;&gt;\u3067\u7f6e\u63db\u3057\u305f\u3044\u90e8\u5206\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002block1\u306e\u90e8\u5206\u306f\u81ea\u5206\u3067\u597d\u304d\u306a\u540d\u524d\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<div>&lt;!&#8211; $BeginBlock block1 &#8211;&gt;\u4ee5\u964d&lt;!&#8211; $EndBlock block1 &#8211;&gt;\u307e\u3067\u306e\u7b87\u6240\u304cMinitemplator\u3067\u51e6\u7406\u3055\u308c\u308b\u7b87\u6240\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<div>\u6b21\u306b&lt;!&#8211; $BeginBlock block1 &#8211;&gt;\u304b\u3089&lt;!&#8211; $EndBlock block1 &#8211;&gt;\u307e\u3067\u306e\u90e8\u5206\u3067Minitemplator\u3067\u7f6e\u63db\u3057\u305f\u3044\u9805\u76ee\u3092\u300c${animal1}\u300d\u306e\u3088\u3046\u306a\u5f62\u3067\u3001${\u00a0 \u3068 }\u3067\u56f2\u307f\u307e\u3059\u3002<\/div>\n<div>\u305d\u3057\u3066\u3001vba\u3067\u51e6\u7406\u3092\u66f8\u304d\u307e\u3059\u3002<\/div>\n<div>\u00a0<\/div>\n<div>\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3053\u3093\u306a\u611f\u3058<\/div>\n<div>\n<pre style=\"padding-left: 30px;\">Attribute VB_Name = \"Sample1\"\r\n' Sample1\r\n' A simple example of how to use the MiniTemplator class.\r\n\r\nOption Explicit\r\n\r\nPublic Sub main()\r\n   Dim t As New MiniTemplator\r\n   t.ReadTemplateFromFile \"Sample1_template.htm\"\r\n   \r\n   t.SetVariable \"animal1\", \"fox\"\r\n   t.SetVariable \"animal2\", \"dog\"\r\n   t.AddBlock \"block1\"\r\n   \r\n   t.SetVariable \"animal1\", \"horse\"\r\n   t.SetVariable \"animal2\", \"cow\"\r\n   t.AddBlock \"block1\"\r\n   \r\n   t.GenerateOutputToFile \"Sample1_out.htm\"\r\n   MsgBox \"HTML page written to file Sample1_out.htm.\"\r\n   End Sub<\/pre>\n<\/div>\n<div>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e${animal1}\u3068${animal2}\u304cfox\u3001dog\u306b\u7f6e\u63db\u3055\u308c\u3001block1\u306e\u90e8\u5206\u304c\u66f8\u304d\u3060\u3055\u308c\u307e\u3059\u3002<\/div>\n<div>\u3055\u3089\u306bhorse\u3001cow\u3068\u7d9a\u3051\u3066\u7f6e\u63db\u3057\u3066\u3001block1\u306e\u90e8\u5206\u304c\u8ffd\u52a0\u3057\u3066\u66f8\u304d\u3060\u3055\u308c\u307e\u3059\u3002<\/div>\n<div>\u8868\u306a\u3069\u306e\u8ffd\u52a0\u306b\u4fbf\u5229\u3067\u3059\u306d\u3002<\/div>\n<div>\u00a0<\/div>\n<div>\u4eca\u56de\u306f\u30a8\u30af\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u3092access\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u82e5\u5e72\u306e\u52a0\u5de5\u3092\u884c\u3044\u3001VBA\u3067Minitemplator\u3092\u5229\u7528\u3057\u3066\u3001\u7d04\uff15\uff10\uff10\u30da\u30fc\u30b8\u306ehtml\u3092\u51fa\u529b\u3057\u307e\u3057\u305f\u3002<\/div>\n<div>\u00a0<\/div>\n<div>\u4f7f\u3063\u3066\u307f\u305f\u611f\u60f3\u3067\u3059\u304c\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u30bf\u30b0\u3092\u7f6e\u304d\u63db\u3048\u308b\u51e6\u7406\u304c\u7701\u3051\u308b\u306e\u3067\u304b\u306a\u308a\u306e\u6642\u9593\u77ed\u7e2e\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\u82f1\u8a9e\u306e\u8aac\u660e\u306a\u306e\u3067\u6700\u521d\u306f\u6238\u60d1\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u4f7f\u3044\u306f\u3058\u3081\u308b\u3068\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u53c2\u8003\u306b\u3057\u3066\u4f55\u3068\u304b\u306a\u308a\u307e\u3057\u305f\u3002<\/div>\n<div>\u6587\u6cd5\u3082\u6bd4\u8f03\u7684\u7c21\u5358\u3067\u3059\u3002<\/div>\n<div>\u5f53\u521d\u306f\u81ea\u5206\u3067\u7f6e\u63db\u51e6\u7406\u3092\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u59cb\u3081\u307e\u3057\u305f\u304c\u3068\u306b\u304b\u304f\u9762\u5012\u3002Minitemplator\u306e\u304a\u9670\u3067\u3060\u3044\u3076\u3089\u304f\u3055\u305b\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002<\/div>\n<div>\u4f5c\u8005\u3055\u307e\u306b\u611f\u8b1d<\/div>\n<div>\u00a0<\/div>\n<div>\n<p><a title=\"sugarsync\" href=\"https:\/\/www.sugarsync.com\/referral?rf=fghi6mm7dqsf6&amp;utm_source=txemail&amp;utm_medium=email&amp;utm_campaign=referral\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" alt=\"sugarsync\" src=\"http:\/\/www.sugarsync.jp\/images\/common\/logo.gif\" width=\"138\" height=\"45\" \/><br \/>sugarsync\u3092\u307e\u3060\u4f7f\u3063\u3044\u306a\u3044\u65b9\u306f\u3053\u3061\u3089\u304b\u3089\u767b\u9332\u3092\u3057\u3066\u3082\u3089\u3048\u308b\u3068\u3001\u79c1\u3068\u3042\u306a\u305f\u306e\u5bb9\u91cf\u304c500MB\u5897\u3048\u307e\u3059\u3002<\/a><\/p>\n<p>\u30d6\u30ed\u30b0\u30e9\u30f3\u30ad\u30f3\u30b0\u306b\u53c2\u52a0\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u30af\u30ea\u30c3\u30af\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059<img decoding=\"async\" loading=\"lazy\" style=\"margin-left: 3px; margin-right: 3px; vertical-align: middle;\" alt=\"\" src=\"http:\/\/kadoya.tk\/wp\/wp-content\/plugins\/typepad-emoji-for-tinymce\/icons\/07\/happy01.gif\" width=\"16\" height=\"16\" \/><\/p>\n<p><a href=\"http:\/\/www.clicksupport.jp\/blog\/ranks\/in\/2178\" target=\"_blank\"><img decoding=\"async\" style=\"border-style: none;\" alt=\"\" src=\"http:\/\/www.clicksupport.jp\/blog\/img\/click.gif\" \/><\/a><\/p>\n<p><a href=\"http:\/\/localwest.blogmura.com\/hiroshima\/\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft\" style=\"border: 0pt none;\" alt=\"\u306b\u307b\u3093\u30d6\u30ed\u30b0\u6751 \u5730\u57df\u751f\u6d3b\uff08\u8857\uff09 \u4e2d\u56fd\u5730\u65b9\u30d6\u30ed\u30b0 \u5e83\u5cf6\u770c\u60c5\u5831\u3078\" src=\"http:\/\/localwest.blogmura.com\/hiroshima\/img\/hiroshima88_31.gif\" width=\"88\" height=\"31\" border=\"0\" \/><\/a><a href=\"http:\/\/gourmet.blogmura.com\/chugokugourmet\/\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft\" style=\"border: 0pt none;\" alt=\"\u306b\u307b\u3093\u30d6\u30ed\u30b0\u6751 \u30b0\u30eb\u30e1\u30d6\u30ed\u30b0 \u4e2d\u56fd\u5730\u65b9\u98df\u3079\u6b69\u304d\u3078\" src=\"http:\/\/gourmet.blogmura.com\/chugokugourmet\/img\/chugokugourmet88_31.gif\" width=\"88\" height=\"31\" border=\"0\" \/><\/a><a href=\"http:\/\/it.blogmura.com\/\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft\" style=\"border: 0pt none;\" alt=\"\u306b\u307b\u3093\u30d6\u30ed\u30b0\u6751 \uff29\uff34\u6280\u8853\u30d6\u30ed\u30b0\u3078\" src=\"http:\/\/it.blogmura.com\/img\/it88_31.gif\" width=\"88\" height=\"31\" border=\"0\" \/><\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u77e5\u4eba\u304b\u3089\u3001\u300c\u540c\u3058\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306eHTML\u30da\u30fc\u30b8\u3092\u5927\u91cf\uff08\u7d04500\u30da\u30fc\u30b8\uff09\u4f5c\u308a\u305f\u3044\u3093\u3058\u3083\u3051\u3069\u3001\u4f55\u304b\u826f\u3044\u65b9\u6cd5\u306a\u3044\uff1f\u300d \u3068\u76f8\u8ac7\u3092\u53d7\u3051\u307e\u3057\u305f\u3002 \u5185\u5bb9\u306f\u3053\u3046\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,5],"tags":[137,139,138],"_links":{"self":[{"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=\/wp\/v2\/posts\/344"}],"collection":[{"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344"}],"version-history":[{"count":0,"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions"}],"wp:attachment":[{"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wasuke.shioya.jp.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}