{"id":1755,"date":"2021-02-21T13:37:12","date_gmt":"2021-02-21T04:37:12","guid":{"rendered":"https:\/\/euc-access-excel-db.com\/tips\/?p=1755"},"modified":"2023-03-10T19:24:07","modified_gmt":"2023-03-10T10:24:07","slug":"msqry-qrytable-survive-new-excel-version01","status":"publish","type":"post","link":"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/msqry-qrytable-survive-new-excel-version01","title":{"rendered":"\u2605 \u4eca\u5f8c\u3001Office2022\u4ee5\u964d\u3001\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u3001\u7121\u304f\u306a\u308b\u306e\u304b\uff1f \uff5e Excel2019\u3067CSV\u3092\u5438\u3044\u8fbc\u3080\u51e6\u7406\u3092\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u300d\u6a5f\u80fd\u3067\u898b\u306a\u304c\u3089 \uff5e"},"content":{"rendered":"<p>\u2605 \u4eca\u5f8c\u3001Office2022\u4ee5\u964d\u3001\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u3001\u7121\u304f\u306a\u308b\u306e\u304b\uff1f \uff5e Excel2019\u3067CSV\u3092\u5438\u3044\u8fbc\u3080\u51e6\u7406\u3092\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u300d\u6a5f\u80fd\u3067\u898b\u306a\u304c\u3089 \uff5e<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<span style=\"color: #ff0000;\">\u203b\u307e\u3060\u66f8\u304d\u304b\u3051\u3067\u3059\u3002\u3059\u307f\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #ff0000;\">\u203b\u9593\u9055\u3063\u3066\u305f\u3089\u3059\u307f\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #ff0000;\">\u203b\u30e1\u30e2\u66f8\u304d\u306a\u306e\u3067\u3001\u81ea\u5206\u3067\u3082\u610f\u5473\u4e0d\u660e\u306a\u7b87\u6240\u3082\u591a\u3044\u3067\u3059\u3002\u3054\u3081\u3093\u306a\u3055\u3044\u3002<\/span><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_1\"> \u2605 \u306f\u3058\u3081\u306b\uff5e\u306a\u305c\u3001\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u304c\u7121\u304f\u306a\u308b\u3068\u300c\u30de\u30ba\u30a4\u300d\u306e\u304b\uff1f<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_7\"> \u2605 \u30b5\u30f3\u30d7\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_18\"> \u2605 \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6982\u8981<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_29\"> \u2605 \u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u3001\u7121\u304f\u306a\u308b\u306e\u304b\uff1f <\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_58\"> \u2605 \u300cMicrosoft Query\u300d\u306f\u3001\u7121\u304f\u306a\u308b\u306e\u304b\uff1f <\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_100\"> \u2605 CSV\u3092\u5438\u3044\u8fbc\u3080\u52d5\u4f5c\u3092\u3001Excel2019\u306e\u30de\u30af\u30ed\u306e\u8a18\u9332\u3067\u8a18\u9332\u3057\u3001\u5c11\u3057\u4fee\u6b63\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\uff08QueryTable\u304c\u7121\u304f\u306a\u3089\u306a\u305d\u3046\u306a\u7406\u7531\u304c\u308f\u304b\u308b\u8a18\u9332\u30de\u30af\u30ed\uff09 <\/a><\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_1\"> \u2605 \u306f\u3058\u3081\u306b\uff5e\u306a\u305c\u3001\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u304c\u7121\u304f\u306a\u308b\u3068\u300c\u30de\u30ba\u30a4\u300d\u306e\u304b\uff1f<\/a><\/p>\n<p>\u306a\u305c\u3001\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u304c\u7121\u304f\u306a\u308b\u3068\u300c\u30de\u30ba\u30a4\u300d\u306e\u3067\u3057\u3087\u3046\uff1f<\/p>\n<p>\u7aef\u7684\u306b\u8a00\u3046\u3068\u3001\u300cPower Query\u300d\u304c\u3001\uff08\u30db\u30f3\u30c8\u306f\u8a00\u3044\u305f\u304f\u306a\u3044\u306e\u3067\u3059\u304c\uff09\u300c\u5f79\u7acb\u305f\u305a\u300d\u3060\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u7279\u306b\u3001<br \/>\n\u300cMicrosoft Query\u300d\u3068<br \/>\n\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d<br \/>\n\u304c20\u5e74\u4ee5\u4e0a\u306e\u524d\u304b\u3089\u6271\u3048\u308b\u4eba\u9593\u306b\u3068\u3063\u3066\u306f\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u307e\u305a\u3001\u300cPower Query\u300d\u306f\u3001\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306a\u3069\u306e\u300c\u5f8c\u7d99\u300d\u300c\u3067\u306f\u306a\u3044\u300d\u306e\u3067\u3059\u304c\u3001\u3067\u3082\u4f4d\u7f6e\u7684\u306a\u305d\u3093\u306a\u98a8\u306b\u898b\u3048\u306a\u304f\u3082\u306a\u3044\u611f\u3058\u3067\u8ffd\u52a0\u3055\u308c\u305f\u6a5f\u80fd\u3067\u3059\u3002<br \/>\n\u8981\u3059\u308b\u306b\u3001<br \/>\n\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u3088\u3046\u306a\u8003\u3048\u65b9\u3092\u3082\u3068\u306b\u3001\u305d\u306e\u3088\u3046\u306a\u3053\u3068\u3068\u304b\u3001\u305d\u308c\u4ee5\u4e0a\u306e\u3053\u3068\u307e\u3067\u3082\u3001\u3044\u308d\u3044\u308d\u3084\u3063\u3061\u3083\u3044\u307e\u3057\u3087\u3046\u300d\u7684\u306a<br \/>\n\u611f\u3058\u3067\u3059\u3002<br \/>\n\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306a\u3069\u3088\u308a\u3082\u3088\u308a\u8907\u96d1\u306a\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u7279\u306b\u3001\u300c\u30af\u30ed\u30b9\u96c6\u8a08\u8868\u3092\u30ea\u30b9\u30c8\u5f62\u5f0f\u306e\u8868\u306b\u5909\u63db\u3057\u305f\u308a\u300d\u3001\u306e\u3068\u304d\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u304c\u3001<br \/>\n\u305d\u3082\u305d\u3082\u306e\u300c\u753b\u9762\u306e\u52d5\u304d\u304c\u9045\u3059\u304e\u300d\u305f\u308a\u3001<br \/>\n\u305d\u3082\u305d\u3082\u306e\u300c\u64cd\u4f5c\u81ea\u4f53\u304c\u8907\u96d1\u3059\u304e\u3066\uff08\u6a5f\u80fd\u304c\u7d30\u304b\u3059\u304e\u3066\uff09\u300d\u3001<br \/>\n\u307e\u305f\u3001<br \/>\n\u300cSQL\u3092\u7406\u89e3\u3057\u3066\u3044\u306a\u3044\u3068\u64cd\u4f5c\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u4e00\u822c\u4e8b\u52d9\u54e1\u3055\u3093\u306e\u307b\u3068\u3093\u3069\u304c\u3001\u96e3\u3057\u3059\u304e\u3066\u4f7f\u3048\u306a\u3044\u300d<br \/>\n\u300cVBA\u5316\u3059\u308b\u306e\u304c \u201d \u8d85 \u201d \u9762\u5012\u304f\u3055\u3044\uff08\u57fa\u672c\u3001\u201d \u3067\u304d\u306a\u3044 \u201d\u3068\u601d\u3063\u3066\u3044\u3044\uff09\u300d\u3001<br \/>\n\u300c\u69cb\u9020\u3084\u64cd\u4f5c\u304c\u8907\u96d1\u3059\u304e\u308b\u305f\u3081\u3001\u4f5c\u696d\u3059\u308b\u305f\u3081\u306e\u6642\u9593\u30b3\u30b9\u30c8\u3082\u304b\u304b\u308a\u3059\u304e\u300d\u3001<br \/>\n\u306a\u304f\u305b\u306b\u3001<br \/>\n\u300c\u5927\u3057\u305f\u3053\u3068\u306b\u4f7f\u3048\u306a\u3044\u300d<br \/>\n\u3067\u3059\u3057\u3001<br \/>\n\u307e\u305f\u3001<br \/>\n\u4f55\u3068\u3044\u3063\u3066\u3082\u3001\u5b9f\u969b\u306b\u3001<br \/>\n\u300cPower Query \u306e\u5e02\u8ca9\u66f8\u7c4d\u3084Web\u8a18\u4e8b\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u3053\u3068\u306e\u534a\u5206\u4ee5\u4e0a\u304c\u3001Microsoft Query \u304b QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\u3092\u4f7f\u3046\u307b\u3046\u304c\u65e9\u304f\u3066\u3001\u7c21\u5358\u3067\u3001\u52d5\u304d\u3082\u901f\u3044\uff08\u534a\u5206\u4ee5\u4e0b\u306e\u6642\u9593\u3067\u540c\u3058\u3053\u3068\u304c\u3067\u304d\u308b\uff09\u300d<br \/>\n\u3068\u3001\u305d\u3046\u3044\u3046\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u6a5f\u80fd\u3066\u3093\u3053\u76db\u308a\u306b\u3057\u305f\u3051\u3069\u3001\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306a\u3069\u3088\u308a\u3082\u9045\u304f\u3066\u4f7f\u3044\u305a\u3089\u304f\u3066\u3001\u305d\u308c\u3089\u3068VBA\u304c\u3042\u308c\u3070\u3001\u304b\u306a\u308a\u306e\u90e8\u5206\u304c\u4e0d\u8981\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u300cVBA\u4f7f\u308f\u306a\u304f\u3066\u3082\u3044\u3044\u300d\u3001\u3068\u3044\u3046\u306e\u304c\u58f2\u308a\u306a\u306e\u3067\u3059\u304c\u3001\u304b\u3048\u3063\u3066VBA\u3088\u308a\u3082\u96e3\u3057\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u300e <a href=\"https:\/\/jsdg.org\/blog\/view031\/\" target=\"_blank\" rel=\"noopener noreferrer\">PowerQuery\u301001\u3011PowerQuery\uff08\u30d1\u30ef\u30fc\u30af\u30a8\u30ea\u30fc\uff09\u3067\u51fa\u6765\u308b\u3053\u3068<\/a> \u300f\u3092\u8aad\u3080\u3068\u3001<br \/>\n\u300cAccess\u306e\u30af\u30a8\u30ea\u306b\u6163\u308c\u3066\u3044\u308b\u4eba\u306a\u308930\u5206\uff5e1\u6642\u9593\u3001Vlookup\u95a2\u6570\u3057\u304b\u4f7f\u3063\u305f\u3053\u3068\u304c\u7121\u3044\u4eba\u306a\u30891\u6642\u9593\u4ee5\u4e0a\u300d\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u3093\u306a\u300c\u7518\u3044\u30e2\u30f3\u30fb\u7c21\u5358\u306a\u30e2\u30f3\u3058\u3083\u306a\u3044\u300d\u3067\u3059\u3002<br \/>\n\u305d\u308c\u306f\u3001\u300c\u8868\u3068\u8868\u3092\u7d50\u5408\u3059\u308b\u3060\u3051\u300d\u306e\u3068\u304d\u306e\u304a\u8a71\u3067\u3059\u3002<br \/>\n\uff08\u305f\u3060\u3001\u3053\u306eWeb\u30da\u30fc\u30b8\u306f\u56f3\u3082\u591a\u304f\u3066\u7d50\u69cb\u308f\u304b\u308a\u3084\u3059\u3044Web\u30da\u30fc\u30b8\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u3054\u6d3b\u7528\u306b\u3069\u3046\u305e\u3002\uff09<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u304a\u307e\u3051\u306b<\/p>\n<p>\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3082\u7d44\u307f\u3065\u3089\u3044\u300d<\/p>\n<p>\u3067\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u300c\u3042\u307b\u304b\uff1f\u300d<br \/>\n\u300c\u30d0\u30ab\u306a\u306e\uff1f\u300d<\/p>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3064\u307e\u308a\u3001<br \/>\n\u300e\u3042\u3042\u3001\u3053\u3093\u306a\u7a0b\u5ea6\u306e\u30af\u30a8\u30ea\u6a5f\u80fd\uff08\uff1d\u30c7\u30fc\u30bf\u62bd\u51fa\u6a5f\u80fd\uff09\u3060\u3063\u305f\u3089\u3001<br \/>\n\u3000\u300cMicrosoft Query\u300d\u304b<br \/>\n\u3000\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d<br \/>\n\u3000\u306e\u307b\u3046\u304c100\u500d\u30de\u30b7\uff01<br \/>\n\u3000\u3069\u3046\u307f\u3066\u3082\u3001\u65e9\u304f\u3066\u901f\u304f\u3066\u30b3\u30b9\u30c8\u3082\u5b89\u304f\u3066<br \/>\n\u3000VBA\u3067\u81ea\u52d5\u5316\u3057\u3084\u3059\u3044\u300f\u30fb\u30fb\u30fb<br \/>\n\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u8a00\u3044\u904e\u304e\u3060\u3068\u3057\u3066\u3082\u3001<br \/>\n\u3067\u3082\u3001\u5c11\u306a\u304f\u3068\u3082\u3001<br \/>\n\u300cPower Query\u300d\u3067\u3084\u308b\u4f5c\u696d\u306e\u534a\u5206\u304f\u3089\u3044\u306f\u3001\u7d76\u5bfe\u306b\u3001<br \/>\n\u300cMicrosoft Query\u300d\u304b<br \/>\n\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d<br \/>\n\u306b\u3088\u3063\u3066\u3001<br \/>\n\u300cPower Query\u300d\u3067\u3084\u308b\u534a\u5206\u4ee5\u4e0b\u306e\u6642\u9593\u3067\u3001<br \/>\n\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n\u3060\u304b\u3089\u3067\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u300cPower Query \u3060\u3051\u306b\u3057\u304b\u3067\u304d\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u306f\u305a\u300d\u306a\u306e\u3067\u3001\u305d\u3046\u3044\u3046\u6642\u306b\u3053\u305d\u3001\u300cPower Query \u300d\u3092\u5927\u3044\u306b\u6d3b\u7528\u3057\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u4f8b\u3048\u3070\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u3053\u3093\u306a\u306b\u7d44\u307f\u3065\u3089\u3044\u300d\u306a\u3093\u3066\u3001\u300c\u30de\u30b8\u3001\u30d0\u30ab\u306a\u306e\uff1f\u300d\u3068\u3057\u304b\u8a00\u3044\u3088\u3046\u304c\u7121\u3044\u3067\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u4f8b\u3048\u3070\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u306b\u3064\u3044\u3066\u306f\u3001\u300cMicrosoft Query\u300d\u306b\u9650\u3063\u305f\u8a71\u3067\u306a\u3089\u3001<br \/>\n\u305f\u3057\u304b\u306b\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068Excel\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306e\u300c\u7570\u306a\u308b\u30d5\u30a1\u30a4\u30eb\u540c\u58eb\u3060\u3068\u300d\u76f4\u63a5\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u304d\u306a\u3044\u3067\u3059\u304c\u3001\u3067\u3082\u3001\u300c\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e\u540c\u58eb\u300d\u306a\u3089\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u30c9\u30e9\u30c3\u30b0\u4e00\u767a\u3067\u7c21\u5358\u306b\u3001\u3069\u306e\u3088\u3046\u306b\u3082\u7d44\u3081\u307e\u3059\u3002<br \/>\n\uff12\u3064\u306e\u8868\u306e\u3042\u3044\u3060\u3067\u3042\u308c\u3070\u3001\u4f55\u672c\u3067\u3082\u3001\u30c9\u30e9\u30c3\u30b0\u3067\u3057\u3085\u3057\u3085\u3057\u3085\u3057\u3085\u30fc\u3068\u3084\u308b\u3060\u3051\u3067\u3059\u3002\u305d\u306e\u9593\u30fb10\uff5e20\u79d2\u307b\u3069\u3002<br \/>\n\uff12\u3064\u4ee5\u4e0a\u306e\u8868\u306e\u3042\u3044\u3060\u3067\u3082\u3001\uff13\u3064\u306e\u8868\u3067\u3082\uff14\u3064\u306e\u8868\u3067\u3082\u3001\u540c\u3058\u3088\u3046\u306b\u30c9\u30e9\u30c3\u30b0\u3067\u3057\u3085\u3057\u3085\u3057\u3085\u3057\u3085\u30fc\u3068\u3084\u308b\u3060\u3051\u3067\u3059\u3002\u3053\u308c\u308210\uff5e20\u79d2\u307b\u3069\u3002<br \/>\n\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u7d50\u679c\u306f\u4e00\u6642\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u3059\u3050\u306b\u72b6\u6cc1\u30c1\u30a7\u30c3\u30af\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u300cSQL\u304c\u5206\u304b\u3089\u306a\u3044\u4eba\u300d\u3067\u3082\u3001\u4f55\u56de\u3067\u3082\u3084\u308a\u76f4\u3057\u3082\u5229\u304d\u3001\u7d50\u679c\u3001\u3067\u304d\u307e\u3059\u3002<br \/>\n\u76f8\u624b\u304c\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306a\u3089\u3001\u3044\u3063\u305f\u3093Excel\u306b\u53d6\u308a\u8fbc\u3081\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3053\u308c\u306f<br \/>\n\u30fb\u4e8b\u52d9\u306e\u4eba\u3067\u3082\u55b6\u696d\u306e\u4eba\u3067\u3082SE\u3084\u30d7\u30ed\u30b0\u30e9\u30de\u3067\u306a\u304f\u3066\u3082\u3001<br \/>\n\u30fbVlookUp\u95a2\u6570\u306a\u3093\u304b\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u304f\u3066\u3082\u3001<br \/>\n\u300c\u8ab0\u3067\u3082\u300d<br \/>\n\u300c\u30ab\u30f3\u30bf\u30f3\u306b\u300d<br \/>\n\u300c\u3067\u304d\u308b\u3002\u300d<br \/>\n\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3067\u3082\u3001\u305d\u3093\u306a\u5927\u5207\u306a\u5927\u5207\u306a\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u3001\u5b9f\u306f\u3001\u300c20\u5e74\u4ee5\u4e0a\u524d\u304b\u3089Excel\u3084Office\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u300d\u300c\u3068\u3063\u3066\u3082\u53e4\u3044\u300d\u300c\u6280\u8853\u3001\u6a5f\u80fd\u300d\u306a\u306e\u3067\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u3082\u3057\u304b\u3057\u305f\u3089\u3001\u4eca\u5f8c\u306e\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306eExcel\u3067\u300c\u5ec3\u6b62\u300d\u3068\u3044\u3046\u53ef\u80fd\u6027\u3082\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u3068\u3063\u3066\u3082\u5fc3\u914d\u3067\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001Excel\u306e\u4e0a\u7d1a\u8005\u306b\u306f\uff08\u300c\u3068\u3063\u3066\u3082\u53e4\u3044\u6280\u8853\u3001\u6a5f\u80fd\u300d\u3060\u3068\u3044\u3046\u3053\u3068\u3060\u3051\u3067\uff09\u3001<br \/>\n\u300e \u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306a\u3093\u304b\u3069\u3046\u305b\u6d88\u3048\u308b\u6a5f\u80fd\u3060\u304b\u3089\u4f7f\u3044\u3082\u306e\u306b\u306a\u3089\u306a\u3044 \u300f<br \/>\n\u3068\u3044\u3046\u98a8\u306b\u300c\u6c7a\u3081\u3064\u3051\u3066\u300d\u30fb\u305d\u3057\u3066\u300c\u8a00\u3046\u300d\u3001\u611a\u304b\u306a\u4eba\u3082\u5c45\u307e\u3059\u3002<\/p>\n<p>\u53e4\u5973\u623f\u306a\u3093\u3066\u6368\u3066\u3066\u6d6e\u6c17\u3057\u3088\u3046\u3001\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u7279\u306b\u3001\u300c\u30af\u30ed\u30b9\u96c6\u8a08\u8868\u304b\u3089\u30ea\u30b9\u30c8\u5f62\u5f0f\u306e\u8868\u306b\u5909\u63db\u3059\u308b\u306b\u3059\u3054\u304f\u4fbf\u5229\uff01\u300d\u3068\u3044\u3046\u3053\u3068\u3092\u58f0\u9ad8\u306b\u8a00\u3046\u4eba\u304c\u3001\u305d\u3046\u3044\u3046\u3053\u3068\u3092\u8a00\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u300cPower Query\u300d\u3067\u3067\u304d\u308b\u306e\u306f\u3001<br \/>\n\u300c\u5358\u7d14\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30af\u30ed\u30b9\u96c6\u8a08\u8868\u300d\u3092\u300c\u30ea\u30b9\u30c8\u5f62\u5f0f\u306e\u8868\u306b\u5909\u63db\u3059\u308b\u300d\u3053\u3068\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070<br \/>\n\u300c\u30e1\u30c1\u30e3\u30af\u30c1\u30e3\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u8868\uff08\u4f8b\u3048\u3070\uff13\u884c\u4e00\u7d44\u3067\u4e0d\u898f\u5247\u306a\u30bb\u30eb\u7d50\u5408\u3084\u7a7a\u767d\u884c\u3082\u3042\u308b\u8acb\u6c42\u66f8\u306a\u3069\uff09\u300d\u3092\u300c\u30ea\u30b9\u30c8\u5f62\u5f0f\u306e\u8868\u306b\u5909\u63db\u3059\u308b\u300d\u306a\u3093\u3066\u3053\u3068\u306f\u3059\u3050\u306b\u306f\u30e0\u30ea\u3067\u3059\u3002<br \/>\n\u3082\u3057\u304b\u3057\u305f\u3089\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u7c21\u5358\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3067\u304d\u305f\u3068\u3057\u3066\u3082\u3001\u51e6\u7406\u304c\u3059\u3063\u3054\u304f\u8907\u96d1\u306b\u306a\u308a\u3001\u305d\u308c\u3053\u305d\u3001\u300cSE\u304b\u30d7\u30ed\u30b0\u30e9\u30de\u300d\u306b\u3057\u304b\u6271\u3048\u307e\u305b\u3093\u3002<br \/>\n\u5f53\u7136\u3001\u300c\u666e\u901a\u306e\u4e8b\u52d9\u3084\u55b6\u696d\u306e\u4eba\u300d\u306b\u306f\u30e0\u30ea\u3067\u3059\u3002<\/p>\n<p>\u7d50\u5c40\u3001\u305d\u3046\u3044\u3046\u8868\u306f\u3001\u300cMicrosoft Query\u300d\u3088\u308a\u3082\u3001\u300cVBA\u300d\u3067\u300c\u30af\u30ec\u30f3\u30b8\u30f3\u30b0\uff08\u6574\u5f62\uff09\u300d\u3057\u305f\u307b\u3046\u304c\u65e9\u3044\u3057\u3001\u300c\u901f\u3044\u300d\u306e\u3067\u3059\u3002<br \/>\n\uff08\u203b\u3082\u3063\u3068\u8a00\u3046\u3068\u3001VBA\u3088\u308a\u3082\u30ef\u30fc\u30af\u30bd\u30fc\u30c8\u95a2\u6570\u306eMatch\u3084Index\u306e\u307b\u3046\u304c\u65e9\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\uff09<\/p>\n<p>\u3067\u3001\u73fe\u5834\u3067\u306f\u3001\u300c\u73fe\u5b9f\u300d\u3068\u3057\u3066\u306f\u3001<br \/>\n\u300c\u5358\u7d14\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30af\u30ed\u30b9\u96c6\u8a08\u8868\u300d\u3088\u308a\u3082\u3001<br \/>\n\u300c\u4e0d\u898f\u5247\u306a\u30bb\u30eb\u7d50\u5408\u3082\u542b\u3093\u3060\u30e1\u30c1\u30e3\u30af\u30c1\u30e3\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u8868\u300d\u306e\u65b9\u304c\u591a\u3044\u3067\u3059\u3002<br \/>\n\u3067\u3082\u3001\u6574\u7406\u3055\u308c\u305f\u8868\u3067\u3042\u308c\u3070\u3001\u3059\u3067\u306b\u300cMicrosoftQuwry\u300d\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u304c\u3042\u308c\u3070\u3001\u304a\u304a\u3080\u306d\u4e8b\u8db3\u308a\u307e\u3059\u3002<\/p>\n<p>\u300cPower Query\u300d\u3068\u7d44\u307f\u3042\u308f\u305b\u3066\u4f7f\u3046\u3053\u3068\u3082\u3082\u3061\u308d\u3093\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u300cPower Query\u300d\u306f\u3001<br \/>\n\u30fb\u300cMicrosoft Query\u300d<br \/>\n\u30fb\u300cVBA\u300d<br \/>\n\u30fb\u300cSQL\u300d<br \/>\n\u30fb\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d<br \/>\n\u3092\u3059\u3067\u306b20\u5e74\u524d\u304b\u3089\u4f7f\u3063\u3066\u3044\u308b\u4eba\u306b\u3068\u3063\u3066\u306f\u3001\u3042\u307e\u308a\u5927\u304d\u306a\u4f7f\u3044\u9053\u306f\u5c11\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\u3002<br \/>\n\u3059\u3054\u304f\u4f7f\u3044\u9053\u304c\u3042\u308b\u65b9\u3082\u3044\u3089\u3057\u3083\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u3001\u50d5\u306b\u306f\u307e\u3060\u5fc5\u8981\u6027\u304c\u51fa\u3066\u304d\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u300cPowertBI\u300d\u3092\u300c\u3057\u3087\u3063\u3061\u3085\u3046\u300d\u4f7f\u3046\u4eba\u300c\u3060\u3051\u300d\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<br \/>\n\uff08\u203b\u300cPowertBI\u300d\u3067\u306f\u30d1\u30ef\u30fc\u30af\u30a8\u30ea\uff08M\u8a00\u8a9e\u3001DAX\u306a\u3069\uff09\u304c\u5fc5\u9808\u3089\u3057\u3044\u306e\u3067\uff09<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u305d\u306e\u307b\u304b\u306b\u3082\u300c\u5927\u3044\u306b\u5229\u7528\u3067\u304d\u308b\u30b7\u30fc\u30f3\u300d\u306f\u300c\u7d76\u5bfe\u306b\u300d\u3042\u308b\u306f\u305a\u306a\u306e\u3067\u3001\u300c\u30e0\u30c0\u6a5f\u80fd\u300d\u3067\u306f\u300c\u7d76\u5bfe\u306b\u306a\u3044\u300d\u3067\u3059\u304c\u3002<\/p>\n<p>\u305f\u3060\u3001\u300cPower Query\u300d\u3068\u300cPowerBI\u300d\u306e\u95a2\u4fc2\u304c\u3069\u3046\u306a\u306e\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u300cPowerBI\u300d\u307b\u3046\u304c\u3001\u4f7f\u3044\u9053\u304c\u591a\u305d\u3046\u3067\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u30fb\u30fb\u30fb\u3001<br \/>\n\u300c\u666e\u901a\u306e\u4e8b\u52d9\u3084\u55b6\u696d\u306e\u4eba\u300d\u3067\u3082\u6271\u3048\u308b\u300cMicrosoft Query\u300d\u3084\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u3001\u975e\u5e38\u306b\u4fbf\u5229\u3067\u8cb4\u91cd\u306a\u5b58\u5728\u306a\u306e\u3067\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u78ba\u304b\u306b\u53e4\u3044\u6280\u8853\u306a\u306e\u3067\u300c\u7121\u304f\u306a\u308b\u300d\u53ef\u80fd\u6027\u3082\u3042\u3063\u3066\u5fc3\u914d\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u300c\u306a\u3089\u3044\u3064\u7121\u304f\u306a\u308a\u305d\u3046\u304b\uff1f\u300d\u300c\u3044\u3064\u307e\u3067\u6b8b\u308a\u305d\u3046\u304b\uff1f\u300d\u306a\u3069\u3092\u5c11\u3057\u300c\u63a8\u6e2c\u300d\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u524d\u7f6e\u304d\u304c\u9577\u304f\u306a\u308a\u3059\u304e\u3066\u3059\u307f\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u3053\u3067\u3084\u3063\u3068\u300c\u7d50\u8ad6\u300d\u3092\u8a00\u3044\u307e\u3059\u3068\u3001\u591a\u5206\u3067\u3059\u304c\u3001<\/p>\n<p>\u3042\u3068\uff15\u5e74\uff082026\u5e742\u670821\u65e5\u307e\u3067\uff09\u306f<\/p>\n<p>\u300c\u7121\u304f\u306a\u3089\u306a\u3044\u300d<\/p>\n<p>\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\uff08\u203bVBA\u81ea\u4f53\u306e\u69cb\u9020\u30fb\u8a18\u8ff0\u7528\u6cd5\u81ea\u4f53\u304c\u5927\u304d\u304f\u304c\u5909\u308f\u3089\u306a\u3044\u9650\u308a\u306f\u3002\uff09<br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u300cMicrosoft Query\u300d\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u7279\u306b\u305d\u3046\u8a00\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306fExcelVBA\u81ea\u4f53\u304c\u7121\u304f\u306a\u3089\u306a\u3044\u9650\u308a\u3001\u7121\u304f\u306a\u3089\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u5c11\u306a\u304f\u3068\u3082\u3001\u300c\u30c6\u30fc\u30d6\u30eb\u6a5f\u80fd\uff08ListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u306e\u5185\u90e8\u3067\u3082\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3042\u306810\u5e74\uff0820\u24621\u5e742\u670821\u65e5\u304f\u3089\u3044\u307e\u3067\uff09\u306f\u6b8b\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u63a8\u6e2c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Microsoft365\u3084\u30012022\u306e\u6b21\u306e\u6b21\u4ee5\u964d\u304f\u3089\u3044\u306eOffice\u3067\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001<br \/>\n\u300c\u6c38\u7d9a\u7248\u306e2019\u300d\u306a\u3089\u3001\u300c\u304a\u305d\u3089\u304f\u300d\u300c\u305a\u3063\u3068\u300d\u300c\u4f7f\u3044\u7d9a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u300d\u3002<br \/>\n\uff08\u7279\u306b\u3001Windows\u306ePro\u7248\u3067\u3001OS\u306e\u9032\u5316\u3092\u6b62\u3081\u30012019\u3082\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308c\u3070\u3002\uff09<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3067\u306f\u4ee5\u964d\u3067\u3001\u305d\u306e\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u304c<\/p>\n<p>\u300e \u3042\u3068\uff15\u5e74\u306f\uff08\u591a\u5206\uff11\uff10\u5e74\u304f\u3089\u3044\u306f\uff09\u300c\u7121\u304f\u306a\u3089\u306a\u3044\u300d\u300f<\/p>\n<p>\u3068\u3044\u3046\u7406\u7531\u306b\u3064\u3044\u3066\u3001\u5c11\u3057\u304a\u8a71\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u5927\u3057\u305f\u8a71\u3067\u3082\u3001\u5927\u3057\u305f\u7406\u7531\u3067\u3082\u306a\u3044\u306e\u3067\u3059\u304c\u30fb\u30fb\u30fb(^^)<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_7\"> \u2605 \u30b5\u30f3\u30d7\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><br \/>\n\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08ESET\u3067\u306e\u30a6\u30a3\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u3042\u308a\u307e\u3059\uff09<\/p>\n<p><a href=\"https:\/\/euc-access-excel-db.com\/00000WPZIP\/2019-csv-import.zip\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b5\u30f3\u30d7\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u3001\u300c1.csv\u300d\u3068\u3044\u3046CSV\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3092\u300cD:\\1\u300d\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u3063\u3066\u305d\u3053\u306b\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u300c1.csv\u300d\u3067\u306a\u3044\u3068\u3001\u307e\u305f\u3001\u300cD:\\1\u300d\u306b\u7f6e\u304b\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u300c2019\u3067\u306eCSV\u5438\u8fbc\u307f.xlsm\u300d\u304c\u5b9f\u884c\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_18\"> \u2605 \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6982\u8981<\/a><\/p>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001Microsoft365\u306e\u300cExcel2019\u300d\u306b\u3066\u3001\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u300d\u3067\u8a18\u9332\u3057\u305f\u30e2\u30ce\u3092\u3001\u5c11\u3057\u7406\u89e3\u3057\u3084\u3059\u3044\u3088\u3046\u306b\u3001\u82e5\u5e72\u4f5c\u308a\u5909\u3048\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<br \/>\n\u3053\u3053\u304b\u3089\u610f\u5916\u306a\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\uff08Power Query\u3067\u4f7f\u308f\u308c\u308b\u300c\u30af\u30a8\u30ea\u300d\u306e\u300c\u63a5\u7d9a\u300d\u304c\u81ea\u52d5\u4f5c\u6210\u3055\u308c\u305f\u3042\u3068\u306b\u3001\u305d\u308c\u304c<br \/>\n\u3000Power Query\u3067\u4f7f\u308f\u308c\u308b\u300c\u30af\u30a8\u30ea\u300d\u306e\u300c\u63a5\u7d9a\u300d\u304c\u300c\u3064\u304f\u3089\u308c\u305f\u300d\u300c\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u300d\u3001<br \/>\n\u3000\u3067\u3082\u3001\u3044\u307e\u3060\u306b\u3001\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u304cListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e2d\u306b\u3001<br \/>\n\u3000\u81ea\u52d5\u751f\u6210\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\uff09<\/p>\n<p>\u300c2019\u3067\u306eCSV\u5438\u8fbc\u307f.xlsm\u300d\u304c\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<p>Ctrl\uff0bF11\u30ad\u30fc\u306b\u3066VBE\u3092\u958b\u3044\u305f\u306e\u3061\u3001<\/p>\n<p>\u300cCSVImport01()\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u300cD:\\1\u300d\u306b\u7f6e\u3044\u305f\u300c1.csv\u300d\u306e\u5185\u5bb9\u3092\u5438\u3044\u8fbc\u307f\u307e\u3059\u3002<br \/>\n\uff08\u540c\u6642\u306b\u30af\u30a8\u30ea\u306e\u300c\u63a5\u7d9a\u300d\u3068\u300c\u540d\u524d\u306e\u5b9a\u7fa9\u300d\u300c\u30c6\u30fc\u30d6\u30eb\uff08\u542bQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u4ed8\u304d\uff09\u300d\u3082\u81ea\u52d5\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u30de\u30af\u30ed\u306e\u8a18\u9332\u3092\u3057\u3066\u3082\u305d\u306e\u52d5\u304d\u3092\u53d6\u308a\u307e\u3059\uff09<\/p>\n<p>\u300cPwQueryDelete\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5438\u3044\u8fbc\u3093\u3060\u3082\u306e\u3092\u524a\u9664\u3057\u307e\u3059\u3002<br \/>\n\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u3067\u300cPwQueryDelete\u300d\u3068\u30b3\u30d4\u30da\u3057\u3066Enter\u3059\u308c\u3070\u3001\u5438\u3044\u8fbc\u3093\u3060\u3082\u306e\u304c\u3001<br \/>\n\u524a\u9664\u3055\u308c\u307e\u3059\uff08\u30af\u30a8\u30ea\u306e\u300c\u63a5\u7d9a\u300d\u3001\u540d\u524d\u306e\u5b9a\u7fa9\u3001\u30c6\u30fc\u30d6\u30eb\u3001\u3068\u3068\u3082\u306b\uff09\u3002<br \/>\n\u305d\u306e\u3042\u3068\u3001\u518d\u5ea6\u3001\u300cCSVImport01()\u300d\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<br \/>\n\uff08\u203b\u3044\u3063\u305f\u3093\u524a\u9664\u3057\u3066\u304b\u3089\u3067\u306a\u3044\u3068\u3001\u6b21\u56de\u306e\u300cCSVImport01()\u300d\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff09<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_29\"> \u2605 \u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u3001\u7121\u304f\u306a\u308b\u306e\u304b\uff1f <\/a><\/p>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u3001\u4eca\u5f8c\u3082\u5f53\u5206\u306e\u3042\u3044\u3060\u3001\u7121\u304f\u306a\u3089\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff08VBA\u306e\u69cb\u9020\u81ea\u4f53\u3084\u8a18\u8ff0\u65b9\u6cd5\u81ea\u4f53\u304c\u5927\u304d\u304f\u5909\u308f\u3089\u306a\u3044\u9650\u308a\u306f\u3002\uff09<br \/>\n\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u300c<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct90_yougo\/yougo-sql01\" target=\"_blank\" rel=\"noopener noreferrer\">SQL<\/a>\u300d\u3082\u4f7f\u3048\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u306d\u3002<\/p>\n<p>\u7406\u7531\u306f\u3001\u5f8c\u8ff0\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u306b\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u3082\u66f8\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u3082\u305d\u308c\u3092\u30b3\u30d4\u30da\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u300cCall ActiveWorkbook.Queries.Add\u30fb\u30fb\u30fb\u300d\u306e\u7d42\u308f\u308a\u306e\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n            '\u3000\u306a\u304a\u3001\u306e\u3061\u307b\u3069\u3001ListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30c6\u30fc\u30d6\u30eb\u6a5f\u80fd\uff09\u306e<br \/>\n            '\u3000\u81ea\u52d5\u751f\u6210\u306e\u7b87\u6240\u3067\u3001QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u304c\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u898b\u308b\u3068\u3001<br \/>\n            '\u3000\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u81ea\u4f53\u306f<br \/>\n            '\u30002022\u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u5f53\u5206\u306f\u5ec3\u6b62\u3055\u308c\u306a\u3055\u305d\u3046\u3002<br \/>\n            '<br \/>\n            '\u3000\u306a\u306e\u3067\u3001\u30ec\u30b3\u30fc\u30c9\u306e\u5358\u7d14\u306a\u62bd\u51fa\u4f5c\u696d\u306a\u3089\u3001<br \/>\n            '\u3000\u300c\u6700\u521d\u304b\u3089\u300d<br \/>\n            '\u3000\u300cPowerQuery\u300d\u306f\u4f7f\u308f\u305a\u306b\u3001<br \/>\n            '\u3000\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d<br \/>\n            '\u3000\u3092\u4eca\u5f8c\u3082\u4f7f\u3044\u7d9a\u3051\u3066\u3082Microsoft365\u3067\u3042\u3063\u3066\u3082\u554f\u984c\u306f\u7121\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\n            ' \u3000\uff08\u203b\u30c6\u30ad\u30b9\u30c8\u7cfb\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5438\u3044\u8fbc\u307f\u6642\u306f<br \/>\n            '\u3000\u3000\u3000<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/text-file_import_by_sql-of-query-table-object01\" target=\"_blank\" rel=\"noopener noreferrer\">\u300cODBC\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u300d\u3092\u4f7f\u308f\u306a\u3044\u3068<\/a><br \/>\n            '\u3000\u3000\u3000SQL\u304c\u4f7f\u3048\u307e\u305b\u3093\u304c\u3001\u3067\u3082\u305d\u308c\u3067\u3082\u3002<br \/>\n            '\u3000\u3000\u3000\u30d5\u30a1\u30a4\u30eb\u540d\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u6e08\u307f\u3001<br \/>\n            '\u3000\u3000\u3000PowerQuery\u306e\u3088\u3046\u306b\u5217\u540d\u306e\u8a2d\u5b9a\u306f\u539f\u5247\u8981\u3089\u306a\u3044\u306e\u3067\u3002\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3057\u3002<br \/>\n            '\u3000\u3000\u3000\u307e\u305f\u3001OS\u304b\u3089\u300cODBC\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u300d\u304c\u7121\u304f\u306a\u308b\u3053\u3068\u3082\u8003\u3048\u306b\u304f\u3044\u3067\u3059\u304b\u3089\u3002\uff09<br \/>\n            '\u3000\u6c38\u7d9a\u7248\u306e\u5358\u767a\u306eExcel\u306a\u3089\u3055\u3089\u306b\u554f\u984c\u306a\u3057\u3002<br \/>\n            '\u3000\u3000\u307e\u305f\u3001<br \/>\n            '\u3000\u3000\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d<br \/>\n            '\u3000\u3000\u3067\u3084\u3063\u305f\u307b\u3046\u304c\u3084\u3063\u3071\u308a\u30e9\u30af\u3061\u3093\uff61<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u7406\u7531\u306f\u3001\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u5f8c\u8ff0\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3001<br \/>\n\u300cSet o_QTItem = ActiveSheet.ListObjects.Add( _\u30fb\u30fb\u30fb\u300d<br \/>\n\u306e\u884c\u306e\u6570\u884c\u4e0b\u306b<br \/>\n\u300cDestination:=Range(\"$A$1\")).QueryTable\u300d<br \/>\n\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3053\u3067<br \/>\n\u300c\u3042\uff01\u3001\u3053\u3053\u3067QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u3066\u308b\uff01\u300d<br \/>\n\u3068\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3088\u308a\u660e\u78ba\u306b\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u5f8c\u8ff0\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e<br \/>\n\u300cDim o_QTItem As QueryTable\u300d<br \/>\n\u306e\u884c\u3092\u3001<br \/>\n\u300cDim o_QTItem As Object\u300d<br \/>\n\u306b\u66f8\u304d\u63db\u3048\u3066\u3001<br \/>\nF8\u30ad\u30fc\u306e\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u3057\u306a\u304c\u3089\u3001<br \/>\n\u300co_QTItem \u300d\u3092<br \/>\n\u30ed\u30fc\u30ab\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u304b\u30a6\u30a9\u30c3\u30c1\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u78ba\u8a8d\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u300cSet o_QTItem = ActiveSheet.ListObjects.Add( _\u30fb\u30fb\u30fb\u300d<br \/>\n\u306e\u3068\u3053\u308d\u3092\u5b9f\u884c\u3057\u305f\u77ac\u9593\u306b\u3001<br \/>\n\u30ed\u30fc\u30ab\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u304b\u30a6\u30a9\u30c3\u30c1\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u3066\u3001<br \/>\n\u300c\u578b\u300d\u306e\u5217\u306b\u3001<br \/>\n\u300cObject\/QueryTable\u300d<br \/>\n\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u78ba\u5b9f\u3067\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3061\u306a\u307f\u306b\u3067\u3059\u304c\u3001<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct90_yougo\/yougo-sql01\" target=\"_blank\" rel=\"noopener noreferrer\">SQL<\/a>\u306f\u300c\u30af\u30a8\u30ea\u306e\u300d\u300c\u63a5\u7d9a\u300d\u3092\u4f7f\u3063\u305f\u5834\u5408\u3067\u3082\uff08Power Query\u3067\u3082\uff1f\uff1f\uff1f\uff09\u4f7f\u3048\u308b\u3082\u3088\u3046\u3067\u3059\u3002<br \/>\n\u305f\u3060\u3001\u300cM\u8a00\u8a9e\u300d\u3067\u306e\u4e8b\u524d\u306e\u30c6\u30fc\u30d6\u30eb\u5b9a\u7fa9\u3092\u3059\u308b\u307f\u305f\u3044\u306a\u3093\u3067\u3059\u304c\u3001\u305d\u308c\u3092VBA\u5316\u3059\u308b\u306e\u304c\u3068\u3066\u3082\u3081\u3093\u3069\u304f\u3055\u3044\u3067\u3059\u3002\uff08\u5f8c\u8ff0\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u308b\u3068\u308f\u304b\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u4e8b\u524d\u306b\u5217\u540d\u8abf\u3079\u3066\u3044\u308d\u3044\u308d\u30b3\u30cd\u30b3\u30cd\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u30fb\u30fb\u30fb\uff09<\/p>\n<p>\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d\u3084\u300cMicrosoft Query\u300d\u3067\u306f\u305d\u306e\u3088\u3046\u306a\u9762\u5012\u304f\u3055\u3044\u3053\u3068\u306f\u8d77\u3053\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_58\"> \u2605 \u300cMicrosoft Query\u300d\u306f\u3001\u7121\u304f\u306a\u308b\u306e\u304b\uff1f <\/a><\/p>\n<p>\u3053\u308c\u306f\u306a\u3093\u3068\u3082\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u304c\u7121\u304f\u306a\u3089\u306a\u3044\u3068\u3053\u308d\u3092\u898b\u308b\u3068\u3001\u300cMicrosoft Query\u300d\u3082\u306a\u3093\u3068\u306a\u304f\u305d\u308c\u306b\u5408\u308f\u305b\u3066\u3057\u3070\u3089\u304f\u306f\u7121\u304f\u306a\u3089\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001OS\u306e\u300cODBC\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u300d\u304c\u7121\u304f\u306a\u3089\u306a\u3044\u3001\u3042\u308b\u3044\u306f\u3001\u305d\u306e\u4e2d\u3067\u300c\u30c6\u30ad\u30b9\u30c8\u30c9\u30e9\u30a4\u30d0\u30fc\u300d\u304c\u7121\u304f\u306a\u3089\u306a\u3044\u9650\u308a\u3001\u540c\u69d8\u306b\u3001\u300cMicrosoft Query\u300d\u306f\u751f\u304d\u6b8b\u3063\u3066\u3057\u307e\u3046\u3088\u3046\u306a\u6c17\u3082\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3088\u308a\u306f\u3001\u751f\u304d\u6b8b\u308b\u53ef\u80fd\u6027\u306f\u4f4e\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u7406\u7531\u306f\u3001\u300cMicrosoft Query\u300d\u306f\u3001\u4f8b\u3048\u307032bit\u7248\u306eExcel\u3067\u306a\u3089\u3001<br \/>\nC:\\Program Files (x86)\\Microsoft Office\\Office14\\MSQRY32.EXE\uff082010\u306e\u5834\u5408\uff09<br \/>\nC:\\Program Files (x86)\\Microsoft Office\\root\\Office16\\MSQRY32.EXE\uff082019\u306e32\u5834\u5408\uff09<br \/>\n\u306a\u3069\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u3001Excel\u304b\u3089\u306f\u72ec\u7acb\u3057\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306a\u306e\u3067\u30fb\u30fb\u30fb<\/p>\n<p>2022\u3067\u7121\u304f\u306a\u3089\u306a\u3051\u308c\u3070\u5f53\u5206\u3001\u7121\u304f\u306a\u3089\u306a\u3044\u304b\u3082\uff1f\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3067\u3059\u304c\u3001<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct90_yougo\/yougo-sql01\" target=\"_blank\" rel=\"noopener noreferrer\">SQL<\/a>\u306f\u300c\u30af\u30a8\u30ea\u306e\u300d\u300c\u63a5\u7d9a\u300d\u3092\u4f7f\u3063\u305f\u5834\u5408\u3067\u3082\uff08Power Query\u3067\u3082\uff1f\uff1f\uff1f\uff09\u4f7f\u3048\u308b\u3082\u3088\u3046\u3067\u3059\u3002<br \/>\n\u305f\u3060\u3001\u300cM\u8a00\u8a9e\u300d\u3067\u306e\u4e8b\u524d\u306e\u30c6\u30fc\u30d6\u30eb\u5b9a\u7fa9\u3092\u3059\u308b\u307f\u305f\u3044\u306a\u3093\u3067\u3059\u304c\u3001\u305d\u308c\u3092VBA\u5316\u3059\u308b\u306e\u304c\u3068\u3066\u3082\u3081\u3093\u3069\u304f\u3055\u3044\u3067\u3059\u3002\uff08\u5f8c\u8ff0\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u308b\u3068\u308f\u304b\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u4e8b\u524d\u306b\u5217\u540d\u8abf\u3079\u3066\u3044\u308d\u3044\u308d\u30b3\u30cd\u30b3\u30cd\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u30fb\u30fb\u30fb\uff09<\/p>\n<p>\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d\u3084\u300cMicrosoft Query\u300d\u3067\u306f\u305d\u306e\u3088\u3046\u306a\u9762\u5012\u304f\u3055\u3044\u3053\u3068\u306f\u8d77\u3053\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_100\"> \u2605 CSV\u3092\u5438\u3044\u8fbc\u3080\u52d5\u4f5c\u3092\u3001Excel2019\u306e\u30de\u30af\u30ed\u306e\u8a18\u9332\u3067\u8a18\u9332\u3057\u3001\u5c11\u3057\u4fee\u6b63\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\uff08QueryTable\u304c\u7121\u304f\u306a\u3089\u306a\u305d\u3046\u306a\u7406\u7531\u304c\u308f\u304b\u308b\u8a18\u9332\u30de\u30af\u30ed\uff09 <\/a><\/p>\n<pre class=\"lang:default decode:true \">\r\n'\r\n'\r\nOption Explicit\r\n\r\n\r\n'############################################\r\n'\u30d1\u30ef\u30fc\u30af\u30a8\u30ea\uff1f\u3067\u306f\u306a\u3044\u3068\u601d\u3046\u3051\u3069\u3001\r\n'\u300c\u30c7\u30fc\u30bf\u2192\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3068\u5909\u63db\u30b0\u30eb\u30fc\u30d7\u2192\u30c6\u30ad\u30b9\u30c8\u307e\u305f\u306fCSV\u304b\u3089\u300d\u30dc\u30bf\u30f3\r\n'\u3067\u306eCSV\u306e\u5438\u8fbc\u307f\r\n'############################################\r\n\r\nSub CSVImport01()\r\n\r\n'\r\n' Macro4 Macro\r\n'\r\n\r\n'\u203b\u4ee5\u964d\u306f\u3001\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u300d\u3067\u8a18\u9332\u3057\u305f\u30e2\u30ce\u3092\u5c11\u3057\u4f5c\u308a\u5909\u3048\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002\r\n'\r\n\r\n\r\n    Dim o_QTItem As QueryTable\r\n    \r\n'\r\n    '\u300c\u5358\u4e00\u306eQuerie\r\n    '\uff08\uff1d\u591a\u5206\u3001Excel\u30e1\u30cb\u30e5\u30fc\u306b\u304a\u3051\u308b\u30af\u30a8\u30ea\u306e\u300c\u63a5\u7d9a\u300d\u3068\u3084\u3089\u306e\u3053\u3068\uff09\u300d\r\n    ' \u306e\u4f5c\u6210\u3002\r\n    '\u3042\u308b\u3044\u306f\u3001\u300c\u30c6\u30fc\u30d6\u30eb\u5b9a\u7fa9\u300d\uff1f\u300cMicrosoftQuery\u300d\u306e\u5834\u5408\u306eQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4ee3\u308f\u308a\u304b\u3082\u3002\r\n    '\u3000\u2192\u306e\u3061\u307b\u3069\u3001\r\n    '\u3000\u3000ListObjects.Add\u306e\r\n    '\u3000\u300cSource=$Workbook$;Location=\"\"1 (2)\"\"\u300d\u306e\u90e8\u5206\u3084\u3001\r\n    '\u3000\u3000\u300cFROM\u53e5\u300d\u3067\u3001\r\n    '\u3000\u3000\u3053\u3053\u3067\u6c7a\u3081\u305f\u300cName\u300d\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u304c\u4f7f\u308f\u308c\u308b\u306e\u3067\u3002\r\n    '\u307e\u305f\u3001\u3053\u3053\u3067\u300c\u30af\u30a8\u30ea\u3068\u63a5\u7d9a\u300d\u306e\u30da\u30a4\u30f3\u306b\u63a5\u7d9a\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u751f\u6210\u3055\u308c\u308b\uff1f\r\n    '\u300c\u30af\u30a8\u30ea\u3068\u63a5\u7d9a\u300d\u306b\u300c\u63a5\u7d9a\u5c02\u7528\u300d\u3068\u3057\u3066\u3053\u306e\u540d\u524d\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002\r\n    '\u300c\u63a5\u7d9a\u300d\u306e\u30da\u30a4\u30f3\u306f\u3001\u30ea\u30dc\u30f3\u306e\u300c\u30c7\u30fc\u30bf\u2192\u30af\u30a8\u30ea\u3068\u63a5\u7d9a\u30b0\u30eb\u30fc\u30d7\u2192\u30af\u30a8\u30ea\u3068\u63a5\u7d9a\u300d\u3067\u51fa\u307e\u3059\u3002\r\n    \r\n    Call ActiveWorkbook.Queries.Add _\r\n            ( _\r\n             Name:=\"1 (2)\", _\r\n             Formula:= _\r\n                 \"let\" & _\r\n                 Chr(13) & \"\" & Chr(10) & \"    \u30bd\u30fc\u30b9 = Csv.Document(File.Contents(\"\"D:\\1\\1.csv\"\"),[Delimiter=\"\",\"\", Columns=2, Encoding=932, QuoteStyle=QuoteStyle.None]),\" & _\r\n                 Chr(13) & \"\" & Chr(10) & \"    \u6607\u683c\u3055\u308c\u305f\u30d8\u30c3\u30c0\u30fc\u6570 = Table.PromoteHeaders(\u30bd\u30fc\u30b9, [PromoteAllScalars=true]),\" & _\r\n                 Chr(13) & \"\" & Chr(10) & \"    \u5909\u66f4\u3055\u308c\u305f\u578b = Table.TransformColumnTypes(\u6607\u683c\u3055\u308c\u305f\u30d8\u30c3\u30c0\u30fc\u6570,{{\"\"a\"\", Int64.Type}, {\"\"b\"\", Int64.Type}})\" & _\r\n                 Chr(13) & \"\" & Chr(10) & _\r\n                 \"in\" & _\r\n                 Chr(13) & \"\" & Chr(10) & \"    \u5909\u66f4\u3055\u308c\u305f\u578b\" _\r\n            )\r\n            '\u2191\u5217\u540d\u306a\u3069\u306e\u8a2d\u5b9a\u304c\u9762\u5012\u304f\u3055\u3044\u306e\u3067\u4f7f\u3044\u3065\u3089\u3044\u3002\r\n            '\u3000\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d\r\n            '\u3000\u306e\u307b\u3046\u304c\u30e9\u30af\u3002\r\n            '\r\n            '\u3000\u306a\u304a\u3001\u306e\u3061\u307b\u3069\u3001ListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30c6\u30fc\u30d6\u30eb\u6a5f\u80fd\uff09\u306e\r\n            '\u3000\u81ea\u52d5\u751f\u6210\u306e\u7b87\u6240\u3067\u3001QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u304c\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u898b\u308b\u3068\u3001\r\n            '\u3000\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u81ea\u4f53\u306f\r\n            '\u30002022\u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u5f53\u5206\u306f\u5ec3\u6b62\u3055\u308c\u306a\u3055\u305d\u3046\u3002\r\n            '\r\n            '\u3000\u306a\u306e\u3067\u3001\u30ec\u30b3\u30fc\u30c9\u306e\u5358\u7d14\u306a\u62bd\u51fa\u4f5c\u696d\u306a\u3089\u3001\r\n            '\u3000\u300c\u6700\u521d\u304b\u3089\u300d\r\n            '\u3000\u300cPowerQuery\u300d\u306f\u4f7f\u308f\u305a\u306b\u3001\r\n            '\u3000\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d\r\n            '\u3000\u3092\u4eca\u5f8c\u3082\u4f7f\u3044\u7d9a\u3051\u3066\u3082Microsoft365\u3067\u3042\u3063\u3066\u3082\u554f\u984c\u306f\u7121\u3055\u305d\u3046\u3067\u3059\u3002\r\n            ' \u3000\uff08\u203b\u30c6\u30ad\u30b9\u30c8\u7cfb\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5438\u3044\u8fbc\u307f\u6642\u306f\r\n            '\u3000\u3000\u3000\u300cODBC\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u300d\u3092\u4f7f\u308f\u306a\u3044\u3068\r\n            '\u3000\u3000\u3000SQL\u304c\u4f7f\u3048\u307e\u305b\u3093\u304c\u3001\u3067\u3082\u305d\u308c\u3067\u3082\u3002\r\n            '\u3000\u3000\u3000\u30d5\u30a1\u30a4\u30eb\u540d\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u6e08\u307f\u3001\r\n            '\u3000\u3000\u3000PowerQuery\u306e\u3088\u3046\u306b\u5217\u540d\u306e\u8a2d\u5b9a\u306f\u539f\u5247\u8981\u3089\u306a\u3044\u306e\u3067\u3002\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3057\u3002\r\n            '\u3000\u3000\u3000\u307e\u305f\u3001OS\u304b\u3089\u300cODBC\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u300d\u304c\u7121\u304f\u306a\u308b\u3053\u3068\u3082\u8003\u3048\u306b\u304f\u3044\u3067\u3059\u304b\u3089\u3002\uff09\r\n            '\u3000\u6c38\u7d9a\u7248\u306e\u5358\u767a\u306eExcel\u306a\u3089\u3055\u3089\u306b\u554f\u984c\u306a\u3057\u3002\r\n            '\u3000\u3000\u307e\u305f\u3001\r\n            '\u3000\u3000\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0bSQL\uff0bVBA\uff0bODBC\u63a5\u7d9a\u300d\r\n            '\u3000\u3000\u3067\u3084\u3063\u305f\u307b\u3046\u304c\u3084\u3063\u3071\u308a\u30e9\u30af\u3061\u3093\uff61\r\n    \r\n    \r\n'    ActiveWorkbook.Worksheets.Add\r\n    \r\n    \r\n    \r\n'    With ActiveSheet.ListObjects.Add( _\r\n'      SourceType:=0, _\r\n'      Source:=\"OLEDB;Provider=Microsoft.Mashup.OleDb.1;Data Source=$Workbook$;Location=\"\"1 (2)\"\";Extended Properties=\"\"\"\"\" _\r\n\r\n    \r\n    'ListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3002\r\n    '\u540c\u6642\u306b\u3001\u57cb\u3081\u8fbc\u307e\u308c\u308bQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u4f5c\u6210\u3055\u308c\u308b\u3002\r\n    '\u3068\u3044\u3046\u304b\u3001QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3064\u3044\u3067\u306b\u3001ListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u4f5c\u3063\u3066\u3044\u308b\uff1f\uff1f\r\n    '\u3053\u3053\u3067\u300c\u30af\u30a8\u30ea\u3068\u63a5\u7d9a\u300d\u3067\u3001\u300c\u63a5\u7d9a\u5c02\u7528\u300d\u306e\u6587\u8a00\u304c\u6d88\u3048\u308b\r\n    '\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306b\u306f\u300cExternalData_1 : \u30c7\u30fc\u30bf\u306e\u53d6\u308a\u51fa\u3057\u4e2d...\u300d\r\n    '\u3068\u3044\u3046\u6587\u8a00\u304cA1\u30bb\u30eb\u306b\u8868\u793a\u3055\u308c\u308b\u3002\r\n    \r\n    Set o_QTItem = ActiveSheet.ListObjects.Add( _\r\n                      SourceType:=0, _\r\n                      Source:=\"OLEDB\" & _\r\n                      \";Provider=Microsoft.Mashup.OleDb.1\" & _\r\n                      \";Data Source=$Workbook$\" & _\r\n                      \";Location=\"\"1 (2)\"\"\" & _\r\n                      \";Extended Properties=\"\"\"\"\", _\r\n                      Destination:=Range(\"$A$1\")).QueryTable\r\n    \r\n    '\u30af\u30a8\u30ea\u306e\u5185\u5bb9\u8868\u793a\r\n    With o_QTItem\r\n      \r\n        .CommandType = xlCmdSql\r\n        .CommandText = Array(\"SELECT * FROM [1 (2)]\") '\u524d\u6bb5\u968e\u3067\u5b9a\u7fa9\u3057\u305f[1 (2)]\u3092\u30c6\u30fc\u30d6\u30eb\u3068\u3057\u3066\u4f7f\u3046\u3002SELECT\u53e5\u3067\u7279\u5b9a\u306e\u5217\u3060\u3051\u3092\u9078\u3076\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\r\n        .RowNumbers = False\r\n        .FillAdjacentFormulas = False\r\n        .PreserveFormatting = True\r\n        .RefreshOnFileOpen = False\r\n        .BackgroundQuery = True\r\n        .RefreshStyle = xlInsertDeleteCells\r\n        .SavePassword = False\r\n        .SaveData = True\r\n        .AdjustColumnWidth = True\r\n        .RefreshPeriod = 0\r\n        .PreserveColumnInfo = True\r\n        .ListObject.DisplayName = \"_1__2\"\r\n        .Refresh BackgroundQuery:=False    '\u3053\u306e\u6642\u70b9\u3067\u3001\u30af\u30a8\u30ea\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\r\n                                           '\u540c\u3058\u304f\u3053\u306e\u6642\u70b9\u3067\u3001\u300c\u30af\u30a8\u30ea\u3068\u63a5\u7d9a\u300d\u30da\u30a4\u30f3\u306b\u3082\u300c\u00d7\u884c\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3057\u305f\u300d\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002\r\n\r\n        \r\n    End With\r\n    \r\n\r\n    \r\nEnd Sub\r\n\r\n\r\n\r\n'############################################\r\n'\u30d1\u30ef\u30fc\u30af\u30a8\u30ea\u306e\u524a\u9664\r\n'############################################\r\n\r\nSub PwQueryDelete()\r\n\r\n    Dim o_Qryitem01 As WorkbookQuery\r\n        \r\n        \r\n    For Each o_Qryitem01 In ActiveWorkbook.Queries\r\n        Call o_Qryitem01.Delete\r\n    Next o_Qryitem01\r\n    \r\n    '\u2191\u300c\u30af\u30a8\u30ea\u3068\u63a5\u7d9a\u300d\u306e\u300c\u63a5\u7d9a\u300d\u306e\u524a\u9664\u3002\r\n    '\u3000Queries\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u306f\u300c\u4e00\u62ec\u524a\u9664\u300d\u7528\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u7121\u3044\u306e\u3067\r\n    '\u3000For Each\u3067\u5168\u524a\u9664\u3059\u308b\u3057\u304b\u306a\u3044\u3088\u3046\u3067\u3059\u3002\r\n    '\u3000\u306a\u304a\u3001\u3082\u3057\u300c\u63a5\u7d9a\u300d\u304c\u4e00\u3064\u3082\u7121\u3051\u308c\u3070\u3001\r\n    '\u3000\u30eb\u30fc\u30d7\u81ea\u4f53\u3092\u81ea\u52d5\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u4ed5\u69d8\u306b\u3082\u3068\u3082\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\r\n    '\u3000\u4f55\u5ea6\u5b9f\u884c\u3057\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306f\u306a\u3089\u306a\u3044\u3067\u3059\u3002\r\n    \r\n    \r\n \r\n \r\n    Call ActiveWorkbook.ActiveSheet.Rows.Delete\r\n    \r\n    '\u2191\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u4e0a\u306e\u8aad\u8fbc\u5185\u5bb9\u3092\u884c\u307e\u308b\u3054\u3068\u524a\u9664\u3002\r\n    '\u3000\u30c6\u30fc\u30d6\u30eb\u3092\u6307\u5b9a\u3059\u308b\u306e\u304c\u9762\u5012\u304f\u3055\u3044\u306e\u3067\u3002\r\n    '\u3000\uff08ListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u300c\u4e00\u62ec\u524a\u9664\u300d\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u7121\u3044\u305f\u3081\uff09\r\n    '\r\n    '\u3000\u306a\u304a\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u30c9\u30e9\u30c3\u30b0\u9078\u629e\u3057\u3066\u524a\u9664\u3059\u308b\u3068\u540d\u524d\u5b9a\u7fa9\u306e\u65b9\u3082\u81ea\u52d5\u7684\u306b\u6d88\u3048\u308b\u3002\r\n    '\u3000\u3082\u3061\u308d\u3093\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u30c9\u30e9\u30c3\u30b0\u9078\u629e\u305b\u305a\u306b\u3001\r\n    '\u3000\u884c\u307e\u308b\u3054\u3068\u524a\u9664\u3057\u3066\u3082\u3001\u540d\u524d\u5b9a\u7fa9\u306e\u65b9\u3082\u81ea\u52d5\u7684\u306b\u6d88\u3048\u308b\u3002\r\n    '\u3000\u540d\u524d\u5b9a\u7fa9\u304c\u6b8b\u3063\u3066\u3057\u307e\u3068\u6b21\u56de\u306e\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u306a\u308b\u305f\u3081\u6d88\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3002\r\n    '\u3000\u3053\u308c\u306f\u6bce\u56de\u3061\u3083\u3093\u3068\u5b9f\u884c\u3067\u304d\u308b\uff08\u3055\u308c\u308b\uff09\u306e\u3067\u3001\u6bce\u56de\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3044\u3067\u3059\u3002\r\n       \r\n\r\nEnd Sub\r\n\r\n\r\n\r\n'\r\n'\r\n<\/pre>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n","protected":false},"excerpt":{"rendered":"\u2605 \u4eca\u5f8c\u3001Office2022\u4ee5\u964d\u3001\u300cMicrosoft Query\u300d\u3068\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u3001\u7121\u304f\u306a\u308b\u306e\u304b\uff1f \uff5e Excel2019\u3067CSV\u3092\u5438\u3044\u8fbc\u3080\u51e6\u7406\u3092\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u300d\u6a5f\u80fd\u3067\u898b\u306a\u304c\u3089 \uff5e \u3000\u3000 \u203b\u307e ...","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[234],"_links":{"self":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1755"}],"collection":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/comments?post=1755"}],"version-history":[{"count":0,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1755\/revisions"}],"wp:attachment":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/media?parent=1755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/categories?post=1755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}