{"id":5129,"date":"2014-12-19T15:14:24","date_gmt":"2014-12-19T06:14:24","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=5129"},"modified":"2014-12-19T15:14:24","modified_gmt":"2014-12-19T06:14:24","slug":"%e6%8c%87%e5%ae%9a%e3%81%97%e3%81%9f%e3%82%bb%e3%83%ab%e7%af%84%e5%9b%b2%e3%82%92utf-8%e3%82%84euc-jp%e7%ad%89%e3%81%ae%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab-2","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=5129","title":{"rendered":"\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3092UTF-8\u3084EUC-JP\u7b49\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\u3059\u308bExcel\u30a2\u30c9\u30a4\u30f3"},"content":{"rendered":"<p>\u4ee5\u524d<a href=\"\/\/www.ka-net.org\/blog\/?p=4426\" title=\"\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3092UTF-8\u3084EUC-JP\u7b49\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\u3059\u308bExcel\u30de\u30af\u30ed\" target=\"_blank\">\u3053\u306e\u8a18\u4e8b<\/a>\u3067\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3092UTF-8\u3084EUC-JP\u7b49\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\u3059\u308bExcel\u30de\u30af\u30ed\u306e\u3053\u3068\u3092\u66f8\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u81ea\u5206\u3067\u3082\u610f\u5916\u3068\u5229\u7528\u3059\u308b\u6a5f\u4f1a\u304c\u591a\u304f\u3001\u305d\u306e\u90fd\u5ea6\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306b\u6e21\u3059\u5f15\u6570\u3092\u66f8\u304d\u63db\u3048\u305f\u308a\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3059\u304c\u306b\u6bce\u56de\u6bce\u56de\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u63db\u3048\u308b\u306e\u304c\u9762\u5012\u81ed\u304f\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u3001UI\u4e0a\u304b\u3089\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u4e0a\u8a18\u8a18\u4e8b\u306e\u30de\u30af\u30ed\u3092\u30a2\u30c9\u30a4\u30f3\u5316\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_01.jpg\" alt=\"RangeToText_01\" width=\"960\" height=\"149\" class=\"alignnone size-full wp-image-5130\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_01.jpg 960w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_01-300x46.jpg 300w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/rtt100.zip\" target=\"_blank\" title=\"\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3092UTF-8\u3084EUC-JP\u7b49\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\u3059\u308bExcel\u30a2\u30c9\u30a4\u30f3\">\u2192 \u30a2\u30c9\u30a4\u30f3\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b \u30a2\u30c9\u30a4\u30f3\u306e\u8a73\u3057\u3044\u8a2d\u5b9a\u65b9\u6cd5\u306f\u4e0a\u8a18\u30d5\u30a1\u30a4\u30eb\u540c\u68b1\u306e\u300creadme.pdf\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<h4>\u25a0 \u4f7f\u3044\u65b9<\/h4>\n<ol>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u6587\u5b57\u30b3\u30fc\u30c9<\/span>\u300d\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059(Shift-JIS(\u6a19\u6e96)\u3001UTF-8\u3001UTF-16\u3001EUC-JP)\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_02.jpg\" alt=\"RangeToText_02\" width=\"163\" height=\"129\" class=\"alignnone size-full wp-image-5131\" \/><\/a><\/p>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u533a\u5207\u308a\u6587\u5b57<\/span>\u300d\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u5404\u9805\u76ee\u306e\u533a\u5207\u308a\u6587\u5b57\u3092\u6307\u5b9a\u3057\u307e\u3059(\u30bf\u30d6(\u6a19\u6e96)\u3001\u30ab\u30f3\u30de\u3001\u30b3\u30ed\u30f3\u3001\u30bb\u30df\u30b3\u30ed\u30f3\u3001\u30d0\u30fc\u30c6\u30a3\u30ab\u30eb\u30d0\u30fc\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3001\u5168\u89d2\u30b9\u30da\u30fc\u30b9)\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_03.jpg\" alt=\"RangeToText_03\" width=\"128\" height=\"196\" class=\"alignnone size-full wp-image-5132\" \/><\/a><\/p>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u6539\u884c\u6587\u5b57<\/span>\u300d\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u5404\u884c\u306e\u6539\u884c\u6587\u5b57\u3092\u6307\u5b9a\u3057\u307e\u3059(CRLF(\u6a19\u6e96)\u3001CR\u3001LF)\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_04.jpg\" alt=\"RangeToText_04\" width=\"131\" height=\"103\" class=\"alignnone size-full wp-image-5133\" \/><\/a><\/p>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u4fdd\u5b58<\/span>\u300d\u30dc\u30bf\u30f3\u306e\u4e0b\u306b\u3042\u308b\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u5404\u9805\u76ee\u3092\u300c&quot;\u300d\u3067\u56f2\u3080\u304b\u3069\u3046\u304b\u6307\u5b9a\u3057\u307e\u3059(\u6a19\u6e96\u3067\u306f\u5404\u9805\u76ee\u3092\u300c&quot;\u300d\u3067\u56f2\u307f\u307e\u3059)\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_05.jpg\" alt=\"RangeToText_05\" width=\"195\" height=\"124\" class=\"alignnone size-full wp-image-5134\" \/><\/a><\/p>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u4fdd\u5b58<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u9078\u629e\u4e2d\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059(\u6a19\u6e96\u3067\u306fCSV\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059)\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_06.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_06.jpg\" alt=\"RangeToText_06\" width=\"70\" height=\"73\" class=\"alignnone size-full wp-image-5135\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_07.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_07.jpg\" alt=\"RangeToText_07\" width=\"640\" height=\"512\" class=\"alignnone size-full wp-image-5136\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_07.jpg 640w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_07-300x240.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_08.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/RangeToText_08.jpg\" alt=\"RangeToText_08\" width=\"238\" height=\"191\" class=\"alignnone size-full wp-image-5137\" \/><\/a>\n<\/ol>\n<p>\u4e0a\u8a18\u306e\u901a\u308a\u3001\u30a2\u30c9\u30a4\u30f3\u5316\u3057\u305f\u304a\u304b\u3052\u3067\u5927\u5206\u697d\u306b\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u81ea\u5206\u7528\u306b\u9069\u5f53\u306b\u4f5c\u3063\u305f\u30a2\u30c9\u30a4\u30f3\u306a\u306e\u3067\u3001\u52d5\u4f5c\u306f\u4e0d\u5b8c\u5168\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u662f\u975e\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u672c\u30a2\u30c9\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>\u25a0 \u30ea\u30dc\u30f3XML<\/h4>\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;rbnRangeToText_onLoad&quot; xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/2006\/01\/customui&quot;&gt;\r\n  &lt;ribbon&gt;\r\n    &lt;tabs&gt;\r\n      &lt;tab idMso=&quot;TabHome&quot;&gt;\r\n        &lt;group id=&quot;grpRangeToText&quot; label=&quot;\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u4fdd\u5b58&quot;&gt;\r\n          &lt;splitButton id=&quot;sbnRangeToText&quot; size=&quot;large&quot;&gt;\r\n            &lt;button id=&quot;btnRangeToText&quot; imageMso=&quot;SaveSelectionToTableOfContentsGallery&quot; label=&quot;\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u4fdd\u5b58&quot; screentip=&quot;\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u4fdd\u5b58&quot; supertip=&quot;\u9078\u629e\u4e2d\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002&quot; onAction=&quot;btnRangeToText_onAction&quot; \/&gt;\r\n            &lt;menu id=&quot;mnuQuotes&quot; supertip=&quot;\u5404\u9805\u76ee\u3092&#x5B;&amp;quot;]\u3067\u56f2\u3080\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6a19\u6e96\u3067\u306f\u5404\u9805\u76ee\u3092&#x5B;&amp;quot;]\u3067\u56f2\u307f\u307e\u3059\u3002&quot;&gt;\r\n              &lt;checkBox id=&quot;cbxQuotes1&quot; label=&quot;\u5404\u9805\u76ee\u3092&#x5B;&amp;quot;]\u3067\u56f2\u307f\u307e\u3059\u3002&quot; screentip=&quot;&#x5B;&amp;quot;]\u56f2\u307f&quot; tag=&quot;Quotes&quot; supertip=&quot;\u5404\u9805\u76ee\u3092&#x5B;&amp;quot;]\u3067\u56f2\u307f\u307e\u3059\u3002&quot; getPressed=&quot;cbxQuotes_getPressed&quot; onAction=&quot;cbxQuotes_onAction&quot; \/&gt;\r\n              &lt;checkBox id=&quot;cbxQuotes2&quot; label=&quot;\u5404\u9805\u76ee\u3092&#x5B;&amp;quot;]\u3067\u56f2\u307f\u307e\u305b\u3093\u3002&quot; screentip=&quot;&#x5B;&amp;quot;]\u56f2\u307f&quot; tag=&quot;NoQuotes&quot; supertip=&quot;\u5404\u9805\u76ee\u3092&#x5B;&amp;quot;]\u3067\u56f2\u307f\u307e\u305b\u3093\u3002&quot; getPressed=&quot;cbxQuotes_getPressed&quot; onAction=&quot;cbxQuotes_onAction&quot; \/&gt;\r\n            &lt;\/menu&gt;\r\n          &lt;\/splitButton&gt;\r\n          &lt;menu id=&quot;mnuCharacterSet&quot; imageMso=&quot;CharacterBorder&quot; screentip=&quot;\u6587\u5b57\u30b3\u30fc\u30c9&quot; supertip=&quot;\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6a19\u6e96\u306f\u300cShift-JIS\u300d\u3067\u3059\u3002&quot; itemSize=&quot;normal&quot; getLabel=&quot;mnuCharacterSet_getLabel&quot;&gt;\r\n            &lt;checkBox id=&quot;cbxCharacterSet1&quot; label=&quot;Shift-JIS&quot; screentip=&quot;\u6587\u5b57\u30b3\u30fc\u30c9&quot; tag=&quot;Shift-JIS&quot; supertip=&quot;Shift-JIS&quot; getPressed=&quot;cbxCharacterSet_getPressed&quot; onAction=&quot;cbxCharacterSet_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxCharacterSet2&quot; label=&quot;UTF-8&quot; screentip=&quot;\u6587\u5b57\u30b3\u30fc\u30c9&quot; tag=&quot;UTF-8&quot; supertip=&quot;UTF-8&quot; getPressed=&quot;cbxCharacterSet_getPressed&quot; onAction=&quot;cbxCharacterSet_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxCharacterSet3&quot; label=&quot;UTF-16&quot; screentip=&quot;\u6587\u5b57\u30b3\u30fc\u30c9&quot; tag=&quot;UTF-16&quot; supertip=&quot;UTF-16&quot; getPressed=&quot;cbxCharacterSet_getPressed&quot; onAction=&quot;cbxCharacterSet_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxCharacterSet4&quot; label=&quot;EUC-JP&quot; screentip=&quot;\u6587\u5b57\u30b3\u30fc\u30c9&quot; tag=&quot;EUC-JP&quot; supertip=&quot;EUC-JP&quot; getPressed=&quot;cbxCharacterSet_getPressed&quot; onAction=&quot;cbxCharacterSet_onAction&quot; \/&gt;\r\n          &lt;\/menu&gt;\r\n          &lt;menu id=&quot;mnuSeparator&quot; imageMso=&quot;StylesStyleSeparator&quot; screentip=&quot;\u533a\u5207\u308a\u6587\u5b57&quot; supertip=&quot;\u533a\u5207\u308a\u6587\u5b57\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6a19\u6e96\u306f\u300c\u30bf\u30d6\u300d\u3067\u3059\u3002&quot; itemSize=&quot;normal&quot; getLabel=&quot;mnuSeparator_getLabel&quot;&gt;\r\n            &lt;checkBox id=&quot;cbxSeparator1&quot; label=&quot;\u30bf\u30d6&quot; screentip=&quot;\u533a\u5207\u308a\u6587\u5b57&quot; tag=&quot;\u30bf\u30d6&quot; supertip=&quot;\u30bf\u30d6&quot; getPressed=&quot;cbxSeparator_getPressed&quot; onAction=&quot;cbxSeparator_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxSeparator2&quot; label=&quot;,&quot; screentip=&quot;\u533a\u5207\u308a\u6587\u5b57&quot; tag=&quot;,&quot; supertip=&quot;\u30ab\u30f3\u30de&quot; getPressed=&quot;cbxSeparator_getPressed&quot; onAction=&quot;cbxSeparator_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxSeparator3&quot; label=&quot;:&quot; screentip=&quot;\u533a\u5207\u308a\u6587\u5b57&quot; tag=&quot;:&quot; supertip=&quot;\u30b3\u30ed\u30f3&quot; getPressed=&quot;cbxSeparator_getPressed&quot; onAction=&quot;cbxSeparator_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxSeparator4&quot; label=&quot;;&quot; screentip=&quot;\u533a\u5207\u308a\u6587\u5b57&quot; tag=&quot;;&quot; supertip=&quot;\u30bb\u30df\u30b3\u30ed\u30f3&quot; getPressed=&quot;cbxSeparator_getPressed&quot; onAction=&quot;cbxSeparator_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxSeparator5&quot; label=&quot;|&quot; screentip=&quot;\u533a\u5207\u308a\u6587\u5b57&quot; tag=&quot;|&quot; supertip=&quot;\u30d0\u30fc\u30c6\u30a3\u30ab\u30eb\u30d0\u30fc&quot; getPressed=&quot;cbxSeparator_getPressed&quot; onAction=&quot;cbxSeparator_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxSeparator6&quot; label=&quot;\u534a\u89d2\u30b9\u30da\u30fc\u30b9&quot; screentip=&quot;\u533a\u5207\u308a\u6587\u5b57&quot; tag=&quot; &quot; supertip=&quot;\u534a\u89d2\u30b9\u30da\u30fc\u30b9&quot; getPressed=&quot;cbxSeparator_getPressed&quot; onAction=&quot;cbxSeparator_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxSeparator7&quot; label=&quot;\u5168\u89d2\u30b9\u30da\u30fc\u30b9&quot; screentip=&quot;\u533a\u5207\u308a\u6587\u5b57&quot; tag=&quot;\u3000&quot; supertip=&quot;\u5168\u89d2\u30b9\u30da\u30fc\u30b9&quot; getPressed=&quot;cbxSeparator_getPressed&quot; onAction=&quot;cbxSeparator_onAction&quot; \/&gt;\r\n          &lt;\/menu&gt;\r\n          &lt;menu id=&quot;mnuLineSeparator&quot; imageMso=&quot;ParagraphMarks&quot; screentip=&quot;\u6539\u884c\u6587\u5b57&quot; supertip=&quot;\u6539\u884c\u6587\u5b57\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6a19\u6e96\u306f\u300cCRLF\u300d\u3067\u3059\u3002&quot; itemSize=&quot;normal&quot; getLabel=&quot;mnuLineSeparator_getLabel&quot;&gt;\r\n            &lt;checkBox id=&quot;cbxLineSeparator1&quot; label=&quot;CRLF&quot; screentip=&quot;\u6539\u884c\u6587\u5b57&quot; tag=&quot;-1&quot; supertip=&quot;CRLF&quot; getPressed=&quot;cbxLineSeparator_getPressed&quot; onAction=&quot;cbxLineSeparator_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxLineSeparator2&quot; label=&quot;CR&quot; screentip=&quot;\u6539\u884c\u6587\u5b57&quot; tag=&quot;13&quot; supertip=&quot;CR&quot; getPressed=&quot;cbxLineSeparator_getPressed&quot; onAction=&quot;cbxLineSeparator_onAction&quot; \/&gt;\r\n            &lt;checkBox id=&quot;cbxLineSeparator3&quot; label=&quot;LF&quot; screentip=&quot;\u6539\u884c\u6587\u5b57&quot; tag=&quot;10&quot; supertip=&quot;LF&quot; getPressed=&quot;cbxLineSeparator_getPressed&quot; onAction=&quot;cbxLineSeparator_onAction&quot; \/&gt;\r\n          &lt;\/menu&gt;\r\n        &lt;\/group&gt;\r\n      &lt;\/tab&gt;\r\n    &lt;\/tabs&gt;\r\n  &lt;\/ribbon&gt;\r\n&lt;\/customUI&gt;<\/pre>\n<h4>\u25a0 \u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb<\/h4>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate myRibbon As Office.IRibbonUI\r\nPrivate chkedQuotesID As String\r\nPrivate chkedCharsetID As String\r\nPrivate chkedSeparatorID As String\r\nPrivate chkedLineSeparatorID As String\r\nPrivate quotes As Boolean\r\nPrivate charset As String\r\nPrivate separator As String\r\nPrivate lineSeparator As Long\r\n\r\nPublic Sub rbnRangeToText_onLoad(ribbon As IRibbonUI)\r\n  '\u521d\u671f\u5316\r\n  Set myRibbon = ribbon\r\n  chkedQuotesID = &quot;cbxQuotes1&quot; '&#x5B;&quot;]\u56f2\u307fON\r\n  quotes = True\r\n  chkedCharsetID = &quot;cbxCharacterSet1&quot; 'Shift-JIS\r\n  charset = &quot;Shift-JIS&quot;\r\n  chkedSeparatorID = &quot;cbxSeparator1&quot; '\u30bf\u30d6\r\n  separator = vbTab\r\n  chkedLineSeparatorID = &quot;cbxLineSeparator1&quot; 'CRLF\r\n  lineSeparator = -1\r\nEnd Sub\r\n\r\nPublic Sub btnRangeToText_onAction(control As IRibbonControl)\r\n  Dim filePath As Variant\r\n  Dim bookName As String\r\n  \r\n  If LCase(TypeName(Application.Selection)) &lt;&gt; &quot;range&quot; Then\r\n    MsgBox &quot;\u30bb\u30eb\u7bc4\u56f2\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002&quot;, vbExclamation + vbSystemModal\r\n    Exit Sub\r\n  End If\r\n  \r\n  bookName = Application.ActiveWorkbook.Name\r\n  If InStr(bookName, &quot;.&quot;) Then bookName = Left(bookName, InStrRev(bookName, &quot;.&quot;, -1, vbTextCompare) - 1)\r\n  filePath = Application.GetSaveAsFilename( _\r\n               InitialFileName:=bookName, _\r\n               FileFilter:=&quot;CSV \u30d5\u30a1\u30a4\u30eb (*.csv),*.csv,&quot; &amp; _\r\n                           &quot;TSV \u30d5\u30a1\u30a4\u30eb (\u30bf\u30d6\u533a\u5207\u308a) (*.tsv),*.tsv,&quot; &amp; _\r\n                           &quot;\u30c6\u30ad\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb (*.txt),*.txt,&quot; &amp; _\r\n                           &quot;\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb (*.*),*.*&quot;, _\r\n               FilterIndex:=1, _\r\n               Title:=&quot;\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5148\u6307\u5b9a&quot;)\r\n  If filePath &lt;&gt; False Then\r\n    'MsgBox filePath &amp; vbCrLf &amp; charset &amp; vbCrLf &amp; separator &amp; vbCrLf &amp; lineSeparator &amp; vbCrLf &amp; quotes '\u78ba\u8a8d\u7528\r\n    RangeToText target_range:=Application.Selection, _\r\n                file_path:=filePath, _\r\n                character_set:=charset, _\r\n                separator:=separator, _\r\n                line_separator:=lineSeparator, _\r\n                flg_quotes:=quotes\r\n    MsgBox &quot;\u51e6\u7406\u304c\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002&quot;, vbInformation + vbSystemModal\r\n  End If\r\nEnd Sub\r\n\r\nPublic Sub mnuCharacterSet_getLabel(control As IRibbonControl, ByRef returnedVal)\r\n  returnedVal = &quot;\u6587\u5b57\u30b3\u30fc\u30c9\uff1a&quot; &amp; charset\r\nEnd Sub\r\n\r\nPublic Sub mnuSeparator_getLabel(control As IRibbonControl, ByRef returnedVal)\r\n  Select Case separator\r\n    Case vbTab: returnedVal = &quot;\u533a\u5207\u308a\u6587\u5b57\uff1a\u30bf\u30d6&quot;\r\n    Case &quot; &quot;: returnedVal = &quot;\u533a\u5207\u308a\u6587\u5b57\uff1a\u534a\u89d2\u30b9\u30da\u30fc\u30b9&quot;\r\n    Case &quot;\u3000&quot;: returnedVal = &quot;\u533a\u5207\u308a\u6587\u5b57\uff1a\u5168\u89d2\u30b9\u30da\u30fc\u30b9&quot;\r\n    Case Else: returnedVal = &quot;\u533a\u5207\u308a\u6587\u5b57\uff1a&quot; &amp; separator\r\n  End Select\r\nEnd Sub\r\n\r\nPublic Sub mnuLineSeparator_getLabel(control As IRibbonControl, ByRef returnedVal)\r\n  Select Case lineSeparator\r\n    Case -1: returnedVal = &quot;\u6539\u884c\u6587\u5b57\uff1aCRLF&quot;\r\n    Case 13: returnedVal = &quot;\u6539\u884c\u6587\u5b57\uff1aCR&quot;\r\n    Case 10: returnedVal = &quot;\u6539\u884c\u6587\u5b57\uff1aLF&quot;\r\n    Case Else: returnedVal = &quot;\u6539\u884c\u6587\u5b57\uff1a&quot; &amp; lineSeparator\r\n  End Select\r\nEnd Sub\r\n\r\nPublic Sub cbxQuotes_getPressed(control As IRibbonControl, ByRef returnedVal)\r\n  Select Case control.id\r\n    Case chkedQuotesID: returnedVal = True\r\n    Case Else: returnedVal = False\r\n  End Select\r\nEnd Sub\r\n\r\nPublic Sub cbxCharacterSet_getPressed(control As IRibbonControl, ByRef returnedVal)\r\n  Select Case control.id\r\n    Case chkedCharsetID: returnedVal = True\r\n    Case Else: returnedVal = False\r\n  End Select\r\nEnd Sub\r\n\r\nPublic Sub cbxSeparator_getPressed(control As IRibbonControl, ByRef returnedVal)\r\n  Select Case control.id\r\n    Case chkedSeparatorID: returnedVal = True\r\n    Case Else: returnedVal = False\r\n  End Select\r\nEnd Sub\r\n\r\nPublic Sub cbxLineSeparator_getPressed(control As IRibbonControl, ByRef returnedVal)\r\n  Select Case control.id\r\n    Case chkedLineSeparatorID: returnedVal = True\r\n    Case Else: returnedVal = False\r\n  End Select\r\nEnd Sub\r\n\r\nPublic Sub cbxQuotes_onAction(control As IRibbonControl, pressed As Boolean)\r\n  Dim i As Long\r\n  \r\n  chkedQuotesID = control.id\r\n  Select Case control.Tag\r\n    Case &quot;Quotes&quot;: quotes = True\r\n    Case &quot;NoQuotes&quot;: quotes = False\r\n    Case Else: quotes = True\r\n  End Select\r\n  'MsgBox chkedQuotesID &amp; vbCrLf &amp; &quot;\u300c&quot; &amp; quotes &amp; &quot;\u300d&quot; &amp; vbCrLf &amp; pressed '\u78ba\u8a8d\u7528\r\n  \r\n  '\u30ea\u30dc\u30f3\u66f4\u65b0\r\n  For i = 1 To 2\r\n    myRibbon.InvalidateControl &quot;cbxQuotes&quot; &amp; CStr(i)\r\n  Next\r\nEnd Sub\r\n\r\nPublic Sub cbxCharacterSet_onAction(control As IRibbonControl, pressed As Boolean)\r\n  Dim i As Long\r\n  \r\n  chkedCharsetID = control.id\r\n  charset = control.Tag\r\n  'MsgBox chkedCharsetID &amp; vbCrLf &amp; charset &amp; vbCrLf &amp; pressed '\u78ba\u8a8d\u7528\r\n  \r\n  '\u30ea\u30dc\u30f3\u66f4\u65b0\r\n  For i = 1 To 4\r\n    myRibbon.InvalidateControl &quot;cbxCharacterSet&quot; &amp; CStr(i)\r\n  Next\r\n  myRibbon.InvalidateControl &quot;mnuCharacterSet&quot;\r\nEnd Sub\r\n\r\nPublic Sub cbxSeparator_onAction(control As IRibbonControl, pressed As Boolean)\r\n  Dim i As Long\r\n  \r\n  chkedSeparatorID = control.id\r\n  Select Case control.Tag\r\n    Case &quot;\u30bf\u30d6&quot;: separator = vbTab\r\n    Case Else: separator = control.Tag\r\n  End Select\r\n  'MsgBox chkedSeparatorID &amp; vbCrLf &amp; &quot;\u300c&quot; &amp; separator &amp; &quot;\u300d&quot; &amp; vbCrLf &amp; pressed '\u78ba\u8a8d\u7528\r\n  \r\n  '\u30ea\u30dc\u30f3\u66f4\u65b0\r\n  For i = 1 To 7\r\n    myRibbon.InvalidateControl &quot;cbxSeparator&quot; &amp; CStr(i)\r\n  Next\r\n  myRibbon.InvalidateControl &quot;mnuSeparator&quot;\r\nEnd Sub\r\n\r\nPublic Sub cbxLineSeparator_onAction(control As IRibbonControl, pressed As Boolean)\r\n  Dim i As Long\r\n  \r\n  chkedLineSeparatorID = control.id\r\n  lineSeparator = CLng(control.Tag)\r\n  'MsgBox chkedLineSeparatorID &amp; vbCrLf &amp; &quot;\u300c&quot; &amp; lineSeparator &amp; &quot;\u300d&quot; &amp; vbCrLf &amp; pressed '\u78ba\u8a8d\u7528\r\n  \r\n  '\u30ea\u30dc\u30f3\u66f4\u65b0\r\n  For i = 1 To 3\r\n    myRibbon.InvalidateControl &quot;cbxLineSeparator&quot; &amp; CStr(i)\r\n  Next\r\n  myRibbon.InvalidateControl &quot;mnuLineSeparator&quot;\r\nEnd Sub\r\n\r\nPrivate Sub RangeToText(ByVal target_range As Excel.Range, _\r\n                        ByVal file_path As String, _\r\n                        ByVal character_set As String, _\r\n                        Optional ByVal separator As String = vbTab, _\r\n                        Optional ByVal line_separator As Long = -1, _\r\n                        Optional ByVal flg_quotes As Boolean = True)\r\n  '\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\r\n  '----------------------------------------\r\n  'target_range:\u51fa\u529b\u5bfe\u8c61\u30bb\u30eb\u7bc4\u56f2\r\n  'file_path:\u51fa\u529b\u5148\u306e\u30d5\u30a9\u30eb\u30c0\u30d1\u30b9\r\n  'character_set:\u6587\u5b57\u30bb\u30c3\u30c8(HKEY_CLASSES_ROOT\\MIME\\Database\\Charset \u53c2\u7167)\r\n  'separator:\u533a\u5207\u308a\u6587\u5b57\r\n  'line_separator:\u884c\u533a\u5207\u308a\u6587\u5b57(adCR:13, adCRLF:-1, adLF:10)\r\n  'flg_quotes:&#x5B;&quot;]\u3067\u56f2\u3080\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\r\n  Dim str As String\r\n  Dim i As Long, j As Long\r\n  Const adTypeText = 2\r\n  Const adWriteChar = 0\r\n  Const adWriteLine = 1\r\n  Const adSaveCreateOverWrite = 2\r\n  \r\n  On Error Resume Next\r\n  With CreateObject(&quot;ADODB.Stream&quot;)\r\n    .Type = adTypeText\r\n    .charset = character_set\r\n    .lineSeparator = line_separator\r\n    .Open\r\n    For i = 1 To target_range.Rows.Count\r\n      For j = 1 To target_range.Columns.Count\r\n        If j = 1 Then\r\n          If flg_quotes = True Then\r\n            str = ChrW(&amp;H22) &amp; target_range(i, j) &amp; ChrW(&amp;H22)\r\n          Else\r\n            str = target_range(i, j)\r\n          End If\r\n        Else\r\n          If flg_quotes = True Then\r\n            str = str &amp; separator &amp; ChrW(&amp;H22) &amp; target_range(i, j).Value &amp; ChrW(&amp;H22)\r\n          Else\r\n            str = str &amp; separator &amp; target_range(i, j).Value\r\n          End If\r\n        End If\r\n      Next\r\n      If i = target_range.Rows.Count Then\r\n        .WriteText str, adWriteChar\r\n      Else\r\n        .WriteText str, adWriteLine\r\n      End If\r\n    Next\r\n    .SaveToFile file_path, adSaveCreateOverWrite\r\n    .Close\r\n  End With\r\n  If Err.Number &lt;&gt; 0 Then\r\n    MsgBox &quot;Err:&quot; &amp; Err.Description, vbCritical + vbSystemModal\r\n    Exit Sub\r\n  End If\r\n  On Error GoTo 0\r\nEnd Sub<\/pre>\n","protected":false},"excerpt":{"rendered":"\u4ee5\u524d\u3053\u306e\u8a18\u4e8b\u3067\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3092UTF-8\u3084EUC-JP\u7b49\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\u3059\u308bExcel\u30de\u30af\u30ed\u306e\u3053\u3068\u3092\u66f8\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u81ea\u5206\u3067\u3082\u610f\u5916\u3068\u5229\u7528\u3059\u308b\u6a5f\u4f1a\u304c\u591a\u304f\u3001\u305d\u306e\u90fd\u5ea6\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306b\u6e21\u3059\u5f15\u6570\u3092\u66f8\u304d\u63db\u3048\u305f\u308a\u3057\u3066\u3044\u307e\u3057 [&hellip;]","protected":false},"author":1,"featured_media":7130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u81ea\u5206\u7528\u306b\u4f5c\u3063\u305f\u30a2\u30c9\u30a4\u30f3\u3092\u516c\u958b\u3002 [\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3092UTF-8\u3084EUC-JP\u7b49\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\u3059\u308bExcel\u30a2\u30c9\u30a4\u30f3]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,48,1,61],"tags":[],"class_list":["post-5129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office","category-ribbon","category-software"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Ribbon.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1kJ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5129","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=5129"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5129\/revisions"}],"predecessor-version":[{"id":5139,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5129\/revisions\/5139"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7130"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}