{"id":4807,"date":"2016-01-11T09:25:37","date_gmt":"2016-01-11T00:25:37","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=4807"},"modified":"2016-01-11T09:25:37","modified_gmt":"2016-01-11T00:25:37","slug":"textwidth","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/textwidth\/","title":{"rendered":"\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\uff1a\u51fa\u529b\u3059\u308b 1 \u884c\u306e\u5e45\u3092\u8a2d\u5b9a\uff08Width # \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09"},"content":{"rendered":"<h2>Width # \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/h2>\n<div class=\"m30-l\">\n<p><a href=\"https:\/\/excelwork.info\/excel\/textopenclose\/\">Open \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/a> \u3092\u30b7\u30fc\u30b1\u30f3\u30b7\u30e3\u30eb\u51fa\u529b\u30e2\u30fc\u30c9\uff08Output\uff09\u3067\u958b\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\u3068\u304d\u306e 1 \u884c\u306e\u5e45\uff08\u6587\u5b57\u6570\uff09\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u69cb\u6587\u3011<\/strong><\/p>\n<p>    <strong>Width<\/strong> <strong>#<\/strong><em>filenumber<\/em>, <em>width<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>filenumber&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>Open \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u3067\u3001\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>width&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;1 \u884c\u306e\u5e45\uff08\u5b57\u6570\uff09\u3092\u793a\u3059\u30010 \uff5e 255 \u306e\u7bc4\u56f2\u306e\u6570\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002width \u304c 0 \u306e\u5834\u5408\u3001\u884c\u306e\u9577\u3055\u306b\u5236\u9650\u306f\u3042\u308a\u307e\u305b\u3093\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<\/ul>\n<br \/><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Width # \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Width # \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Width()\r\n\r\n    Dim FileName As String\r\n    Dim FNum As Integer\r\n    Dim i As Integer\r\n        \r\n    FileName = \"C:\\Documents\\mydata\\test03.txt\"\r\n    FNum = FreeFile\r\n    \r\n    '\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\r\n    Open FileName For Output As #FNum\r\n    \r\n    '\u5e45\u3092\u8a2d\u5b9a\r\n    Width #FNum, 10\r\n    \r\n    For i = 11 To 50\r\n        \r\n        Print #FNum, CStr(i);\r\n        \r\n    Next i\r\n\r\n    '\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u308b\r\n    Close #FNum\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9 \u3092\u5b9f\u884c\u3057\u3066\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/01\/textwidth01.jpg?ssl=1\" rel=\"lightbox[4807]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/01\/textwidth01.jpg?resize=565%2C336&#038;ssl=1\" alt=\"Width # \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\" width=\"565\" height=\"336\" class=\"alignnone size-full wp-image-4808\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/01\/textwidth01.jpg?w=565&amp;ssl=1 565w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/01\/textwidth01.jpg?resize=400%2C238&amp;ssl=1 400w\" sizes=\"(max-width: 565px) 100vw, 565px\" data-recalc-dims=\"1\" \/><\/a>  <\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Width # \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 Open \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 \u3092\u30b7\u30fc\u30b1\u30f3\u30b7\u30e3\u30eb\u51fa\u529b\u30e2 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4808,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[675],"tags":[693,731,63,745,38,729],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/01\/textwidth01.jpg?fit=565%2C336&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1fx","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4807"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=4807"}],"version-history":[{"count":4,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4807\/revisions"}],"predecessor-version":[{"id":4870,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4807\/revisions\/4870"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/4808"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=4807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=4807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=4807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}