{"id":2589,"date":"2015-07-15T12:54:36","date_gmt":"2015-07-15T03:54:36","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2589"},"modified":"2015-08-26T01:00:37","modified_gmt":"2015-08-25T16:00:37","slug":"horizontalalignment","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/horizontalalignment\/","title":{"rendered":"\u6587\u5b57\u5217\u306e\u6a2a\u4f4d\u7f6e\u3092\u53d6\u5f97\u30fb\u8a2d\u5b9a\u3059\u308b\uff08HorizontalAlignment \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>HorizontalAlignment \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>HorizontalAlignment \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306b\u304a\u3051\u308b\u3001<span class=\"blue\">\u6587\u5b57\u5217\u306e\u6c34\u5e73\u65b9\u5411\u306e\u4f4d\u7f6e\uff08\u6a2a\u4f4d\u7f6e\uff09\u3092\u8a2d\u5b9a\u30fb\u53d6\u5f97<\/span>\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>result<\/em> = <em>Object<\/em>.<strong>HorizontalAlignment<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>Object<\/em>.<strong>HorizontalAlignment<\/strong> = <em>const<\/em><\/p><\/div>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>const&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u6c34\u5e73\uff08\u6a2a\uff09\u65b9\u5411\u306e\u914d\u7f6e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u5024\u30fb\u5b9a\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u6c34\u5e73\uff08\u6a2a\uff09\u65b9\u5411\u306e\u914d\u7f6e\u4f4d\u7f6e\u3092\u8868\u3059\u5024<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong>\u5f15\u6570 <em>const<\/em> \u306b\u6307\u5b9a\u3059\u308b\u6c34\u5e73\u65b9\u5411\u914d\u7f6e\u4f4d\u7f6e\u3092\u8868\u3059\u5b9a\u6570<\/strong><\/p>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"320\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlRight<\/td>\n<td width=\"80\" align = \"center\">-4152<\/td>\n<td width=\"320\" >\u53f3\u63c3\u3048<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlLeft<\/td>\n<td width=\"80\" align = \"center\">-4131<\/td>\n<td width=\"320\" >\u5de6\u63c3\u3048<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlJustify<\/td>\n<td width=\"80\" align = \"center\">-4130<\/td>\n<td width=\"320\" >\u4e21\u7aef\u63c3\u3048<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlDistributed<\/td>\n<td width=\"80\" align = \"center\">-4117<\/td>\n<td width=\"320\" >\u5747\u7b49\u5272\u308a\u4ed8\u3051<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlCenter<\/td>\n<td width=\"80\" align = \"center\">-4108<\/td>\n<td width=\"320\" >\u4e2d\u592e\u63c3\u3048<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlGeneral<\/td>\n<td width=\"80\" align = \"center\">1<\/td>\n<td width=\"320\" >\u6a19\u6e96\uff08\u65e2\u5b9a\u5024\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlFill<\/td>\n<td width=\"80\" align = \"center\">5<\/td>\n<td width=\"320\" >\u7e70\u308a\u8fd4\u3057<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlCenterAcrossSelection<\/td>\n<td width=\"80\" align = \"center\">7<\/td>\n<td width=\"320\" >\u9078\u629e\u7bc4\u56f2\u5185\u3067\u306e\u4e2d\u592e\u63c3\u3048<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<br \/><br \/>\n<h2>HorizontalAlignment \u30d7\u30ed\u30d1\u30c6\u30a3 \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=\"HorizontalAlignment \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_HorizontalAlignment()\r\n\r\n\r\n    Range(\"A1:C1\").HorizontalAlignment = xlLeft\r\n    \r\n    Range(\"A2\").HorizontalAlignment = xlJustify\r\n    \r\n    Range(\"B2\").HorizontalAlignment = xlCenter\r\n    \r\n    Range(\"A3\").HorizontalAlignment = xlDistributed\r\n    \r\n    Range(\"C3\").HorizontalAlignment = xlFill\r\n    \r\n    Range(\"A4\").HorizontalAlignment = xlRight\r\n    \r\n    Range(\"A5:C5\").HorizontalAlignment = xlCenterAcrossSelection\r\n    \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\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment01a.jpg?ssl=1\" rel=\"lightbox[2589]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment01a.jpg?resize=400%2C224&#038;ssl=1\" alt=\"HorizontalAlignment \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b01\" width=\"400\" height=\"224\" class=\"alignnone size-medium wp-image-2599\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment01a.jpg?resize=400%2C224&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment01a.jpg?w=469&amp;ssl=1 469w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><br \/>\n<\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment02a.jpg?ssl=1\" rel=\"lightbox[2589]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment02a.jpg?resize=400%2C227&#038;ssl=1\" alt=\"HorizontalAlignment \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b02\" width=\"400\" height=\"227\" class=\"alignnone size-medium wp-image-2600\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment02a.jpg?resize=400%2C227&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment02a.jpg?w=469&amp;ssl=1 469w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>HorizontalAlignment \u30d7\u30ed\u30d1\u30c6\u30a3 HorizontalAlig &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2642,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[396,270,63,399,38,269,397,398],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/horizontalalignment01a-400x2241.jpg?fit=400%2C224&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-FL","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2589"}],"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=2589"}],"version-history":[{"count":8,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2589\/revisions"}],"predecessor-version":[{"id":3352,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2589\/revisions\/3352"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2642"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}