{"id":7280,"date":"2019-06-26T07:00:26","date_gmt":"2019-06-25T22:00:26","guid":{"rendered":"https:\/\/jimuya.com\/?p=7280"},"modified":"2019-07-03T05:47:11","modified_gmt":"2019-07-02T20:47:11","slug":"vba%e3%81%a7%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e5%86%85%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%90%8d%e3%82%92%e5%8f%96%e5%be%97%e3%81%97%e3%81%a6%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.jimuya.com\/?p=7280","title":{"rendered":"VBA\u3067\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3057\u3066\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u4ed5\u4e8b\u3067\u30a8\u30af\u30bb\u30eb\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001<\/p>\n<p><strong>\u300c\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u30ea\u30b9\u30c8\u5316\u3057\u3066\u6b32\u3057\u3044\u300d<\/strong><\/p>\n<p>\u3068\u3044\u3063\u305f\u8981\u671b\u304c\u51fa\u3066\u304f\u308b\u6642\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u7279\u306b\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e\u78ba\u8a8d\u306e\u5834\u5408\u304c\u826f\u3044\u4f8b\u3067\u3059\u3002<\/p>\n<p><strong>\u300cEC\u30b5\u30a4\u30c8\u306b\u5546\u54c1\u3092\u63b2\u8f09\u3057\u305f\u3044\u3051\u3069\u3001<\/strong><\/p>\n<p><strong>\u5546\u54c1\u30ea\u30b9\u30c8\u306b\u3042\u308b\u5546\u54c1\u753b\u50cf\u306f\u63c3\u3063\u3066\u3044\u308b\u304b<\/strong><strong>\u30ea\u30b9\u30c8\u3068\u78ba\u8a8d\u3057\u3066\u304f\u308c\u308b\uff1f\u300d<\/strong><\/p>\n<p>\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u5834\u5408\u3067\u3059\u306d\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u52d5\u753b\u30d5\u30a1\u30a4\u30eb\u3084\u3001\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3082\u3053\u3093\u306a\u611f\u3058\u3067<\/p>\n<p>\u30ea\u30b9\u30c8\u5316\u3057\u305f\u3044\u5834\u9762\u304c\u51fa\u3066\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6570\u304c\u5c11\u306a\u3044\u5834\u5408\u306f\u7c21\u5358\u306b\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u304c\u3001<\/p>\n<p>100\u4ee5\u4e0a\u306b\u306a\u3063\u3066\u304f\u308b\u3068\u898b\u308b\u3060\u3051\u3067\u30af\u30e9\u3063\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u983b\u5ea6\u306f\u5c11\u306a\u304f\u3066\u3082\u3001<\/p>\n<p>\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4e00\u3064\u305a\u3064<\/p>\n<p>\u30b3\u30d4\u30fc\u3057\u3066\u3001\u8cbc\u308a\u3064\u3051\u3066\u30fb\u30fb\u30fb<\/p>\n<p>\u3068\u3044\u3063\u305f\u4f5c\u696d\u306f\u5730\u5473\u3067\u3001\u6642\u9593\u3082\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305d\u3053\u3067\u4fbf\u5229\u306a\u306e\u304cExcel\u306b\u6a19\u6e96\u642d\u8f09\u3055\u308c\u3066\u3044\u308b<\/p>\n<p>VBA\u3068\u3044\u3046\u30de\u30af\u30ed\u3092\u4f7f\u3063\u305f\u4f5c\u696d\u3092\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">VBA\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>VBA\u3068\u306f\u3001<\/p>\n<p>Visual Basic for Application\u306e\u7565\u79f0\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067<\/p>\n<p>\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3057\u3066\u304f\u308c\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u66f8\u5e97\u306bExcel\u306e\u672c\u3092\u898b\u306b\u884c\u3063\u305f\u6642\u3001<\/p>\n<p>Excel\u95a2\u9023\u306e\u672c\u306e\u30ab\u30c6\u30b4\u30ea\u306b\u4e00\u7dd2\u306b\u304a\u3044\u3066\u308b<\/p>\n<p>\u96e3\u3057\u305d\u3046\u306a\u3042\u308c\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u304b\u3068\u3044\u3063\u3066\u3001\u96e3\u3057\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u306a\u305c\u306a\u3089\u3001VBA\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f7f\u7528\u3067\u304d\u308b\u6a5f\u80fd\u3092<\/p>\n<p>\u30d1\u30ba\u30eb\u306e\u3088\u3046\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001<\/p>\n<p>VBA\u306e\u30b3\u30fc\u30c9\u304c\u7406\u89e3\u3067\u304d\u306a\u304f\u3066\u3082\u4f7f\u3048\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3059\u308b\u30de\u30af\u30ed<\/h2>\n\n\n\n<p>\u4eca\u56de\u7d39\u4ecb\u3059\u308bVBA\u306e\u30de\u30af\u30ed\u306f\u3001<\/p>\n<ol>\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u691c\u7d22\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u6307\u5b9a\u3059\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u8868\u793a<\/strong><\/li>\n<li><strong>\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092Excel\u306b\u30ea\u30b9\u30c8\u5316\u3059\u308b<\/strong><\/li>\n<\/ol>\n<p>\u3068\u3044\u3046\uff12\u3064\u306e\u6a5f\u80fd\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u30a8\u30af\u30bb\u30eb\u306e\u30de\u30af\u30ed\u306b\u30b3\u30d4\u30da\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3000\uff08\u30de\u30af\u30ed\u306e\u30b3\u30d4\u30da\uff08\u8cbc\u308a\u4ed8\u3051\uff09\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5206\u304b\u3089\u306a\u3044\u65b9\u306f<\/p>\n<p><strong>\u3000\u3000<a href=\"https:\/\/www.jimuya.com\/?p=7294\">\u3053\u3061\u3089<\/a><\/strong>\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u30d5\u30a1\u30a4\u30eb\u540d\u53d6\u5f97\u30de\u30af\u30ed\">Sub \u30d5\u30a1\u30a4\u30eb\u540d\u53d6\u5f97()\n\n  Dim folderPath As Variant\n  With Application.FileDialog(msoFileDialogFolderPicker)\n   .Show\n   folderPath = .SelectedItems(1)\n  End With\n  \n  Debug.Print \"\u9078\u629e\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u30d1\u30b9\uff1a\" &amp; folderPath\n\n    Dim f As Object, cnt As Long\n    With CreateObject(\"Scripting.FileSystemObject\")\n        For Each f In .GetFolder(folderPath).Files\n            cnt = cnt + 1\n            Cells(cnt, 1) = f.Name\n            Cells(cnt, 2) = f.DateCreated\n        Next f\n    End With\nEnd Sub<\/pre>\n<p>\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p>\u30de\u30af\u30ed\u3092\u8d77\u52d5\u3059\u308b\u3068\u3001<\/p>\n<p>\u958b\u304f\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3059\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u304c\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>\u5de6\u4e0a\u306b\u300c\u53c2\u7167\u300d\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"669\" height=\"475\" src=\"https:\/\/jimuya.com\/wp-content\/uploads\/img_5d128a7d65cec.png\" alt=\"\" class=\"wp-image-7283\" srcset=\"https:\/\/www.jimuya.com\/wp-content\/uploads\/img_5d128a7d65cec.png 669w, https:\/\/www.jimuya.com\/wp-content\/uploads\/img_5d128a7d65cec-400x284.png 400w, https:\/\/www.jimuya.com\/wp-content\/uploads\/img_5d128a7d65cec-301x214.png 301w, https:\/\/www.jimuya.com\/wp-content\/uploads\/img_5d128a7d65cec-282x200.png 282w\" sizes=\"(max-width: 669px) 100vw, 669px\" \/><\/figure>\n\n\n\n<p>\u305d\u3053\u3067\u30ea\u30b9\u30c8\u5316\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u306e\u5165\u3063\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067Excel\u306b\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u306e\u6a5f\u80fd\u3067\u306f\u3001\u6307\u5b9a\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u306e\u540d\u524d\u3084\u3001<\/p>\n<p>\u4e0b\u5c64\u306b\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u306e\u5185\u5bb9\u306a\u3069\u306f\u51fa\u529b\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3057\u3066\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ed5\u4e8b\u3067\u30a8\u30af\u30bb\u30eb\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001 \u300c\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u30ea\u30b9\u30c8\u5316\u3057\u3066\u6b32\u3057\u3044\u300d \u3068\u3044\u3063\u305f\u8981\u671b\u304c\u51fa\u3066\u304f\u308b\u6642\u304c\u3042\u308a\u307e\u3059\u3002 &nbsp; \u7279\u306b\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e\u78ba\u8a8d\u306e\u5834\u5408\u304c\u826f\u3044\u4f8b\u3067\u3059\u3002 \u300cEC\u30b5\u30a4 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":7288,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1518],"tags":[],"class_list":["post-7280","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pc_excel"],"_links":{"self":[{"href":"https:\/\/www.jimuya.com\/index.php?rest_route=\/wp\/v2\/posts\/7280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jimuya.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jimuya.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jimuya.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jimuya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7280"}],"version-history":[{"count":7,"href":"https:\/\/www.jimuya.com\/index.php?rest_route=\/wp\/v2\/posts\/7280\/revisions"}],"predecessor-version":[{"id":7324,"href":"https:\/\/www.jimuya.com\/index.php?rest_route=\/wp\/v2\/posts\/7280\/revisions\/7324"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jimuya.com\/index.php?rest_route=\/wp\/v2\/media\/7288"}],"wp:attachment":[{"href":"https:\/\/www.jimuya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jimuya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jimuya.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}