{"id":2257,"date":"2015-06-13T12:58:03","date_gmt":"2015-06-13T03:58:03","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2257"},"modified":"2015-08-26T01:13:33","modified_gmt":"2015-08-25T16:13:33","slug":"celladdressp","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/celladdressp\/","title":{"rendered":"\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u78ba\u8a8d\uff08Address \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>Address \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>Address \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbAddressLocal \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u30fb\u30bb\u30eb\u7bc4\u56f2\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<br \/>\n<strong>Address \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u306f\u30de\u30af\u30ed\u8a00\u8a9e\u3067\u306e\u53c2\u7167\u7bc4\u56f2\u3001<strong>AddressLocal \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u8a00\u8a9e\u3067\u306e\u53c2\u7167\u7bc4\u56f2\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <em>Object<\/em>.<strong>Address<\/strong> ( <em>rowabsolute<\/em>, <em>columnabsolute<\/em>, <em>referencestyle<\/em>, <em>external<\/em>, <em>relativeto<\/em> )<\/p>\n<p>  <em>Object<\/em>.<strong>AddressLocal<\/strong> ( <em>rowabsolute<\/em>, <em>columnabsolute<\/em>, <em>referencestyle<\/em>, <em>external<\/em>, <em>relativeto<\/em> )<\/p>\n<\/div>\n<br \/>\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>\n<li>rowabsolute&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u884c\u306e\u53c2\u7167\uff08\u7d76\u5bfe\u53c2\u7167\uff1a<strong>True<\/strong> \uff0f \u76f8\u5bfe\u53c2\u7167\uff1a<strong>False<\/strong>\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n    \u7701\u7565\u3059\u308b\u3068\u3001<strong>True<\/strong> \u304c\u6307\u5b9a\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>columnabsolute&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5217\u306e\u53c2\u7167\uff08\u7d76\u5bfe\u53c2\u7167\uff1a<strong>True<\/strong> \uff0f \u76f8\u5bfe\u53c2\u7167\uff1a<strong>False<\/strong>\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n  \u7701\u7565\u3059\u308b\u3068\u3001<strong>True<\/strong> \u304c\u6307\u5b9a\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>referencestyle&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u53c2\u7167\u5f62\u5f0f\u3092\u793a\u3059\u5b9a\u6570\uff08XlReferenceStyle \u5217\u6319\u578b\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<br \/><\/p>\n<table>\n<tr>\n<td align = \"center\" width=\"150\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"150\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"150\" align = \"center\">xlA1<\/td>\n<td width=\"150\" align = \"center\">1<\/td>\n<td width=\"200\" >A1 \u5f62\u5f0f\uff08\u898f\u5b9a\u5024\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"150\" align = \"center\">xlR1C1<\/td>\n<td width=\"150\" align = \"center\">-4150<\/td>\n<td width=\"200\" >R1C1 \u5f62\u5f0f<\/td>\n<\/tr>\n<\/table>\n<p><br \/>\n<\/li>\n<li>external&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5916\u90e8\u53c2\u7167\u306b\u306f\u3001<strong>True<\/strong> \u3092\u3001\u30ed\u30fc\u30ab\u30eb\u53c2\u7167\u306b\u306f\u3001<strong>False<\/strong>\uff08\u898f\u5b9a\u5024\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>relativeto&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u76f8\u5bfe\u53c2\u7167\u306e\u57fa\u6e96\u3068\u306a\u308b <strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\uff08<span class=\"blue\">\u5f15\u6570 <em>rowabsolute<\/em> \u3068\u5f15\u6570 <em>columnabsolute<\/em> \u306e\u4e21\u65b9\u306b <strong>False<\/strong> \u3001\u5f15\u6570 <em>referencestyle<\/em> \u306b <strong>xlR1C1<\/strong> \u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408<\/span>\uff09<\/li>\n<\/ul>\n<br \/><br \/>\n<p class=\"caution4\"><strong>\u5916\u90e8\u53c2\u7167\u3068\u30ed\u30fc\u30ab\u30eb\u53c2\u7167\u306e\u9055\u3044<\/strong><br \/>\n\u3000\u3010\u5916\u90e8\u53c2\u7167\u3011\uff1a[\u53c2\u7167\u30d5\u30a1\u30a4\u30eb\u540d]\u53c2\u7167\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u540d!\u7bc4\u56f2\u53c2\u7167<br \/>\n\u3000\u3010\u30ed\u30fc\u30ab\u30eb\u53c2\u7167\u3011\uff1a\u7bc4\u56f2\u53c2\u7167<br \/>\n  \u306e\u5f62\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>Address \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\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=\"Address \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Address()\r\n\r\n\r\n    Dim myRng\r\n    \r\n    Set myRng = ActiveSheet.Cells(3, 2)\r\n    \r\n    '\u5f15\u6570\u7701\u7565\r\n    Debug.Print myRng.Address\r\n    \r\n    '\u884c\u3092\u76f8\u5bfe\u53c2\u7167\r\n    Debug.Print myRng.Address(RowAbsolute:=False)\r\n    \r\n    'R1C1\u5f62\u5f0f\r\n    Debug.Print myRng.Address(ReferenceStyle:=xlR1C1)\r\n    \r\n    '\u76f8\u5bfe\u53c2\u7167\u3001R1C1\u5f62\u5f0f\u3001\u5916\u90e8\u53c2\u7167\u3001\u30bb\u30eb\u300cB5\u300d\u3092\u8d77\u70b9\r\n    Debug.Print myRng.Address(False, False, xlR1C1, True, Cells(5, 2))\r\n\r\n\r\nEnd Sub\r\n\u3000\r\n<\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangeaddress02.jpg?ssl=1\" rel=\"lightbox[2257]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangeaddress02.jpg?resize=400%2C289&#038;ssl=1\" alt=\"Address \u30d7\u30ed\u30d1\u30c6\u30a3\u4f8b\" width=\"400\" height=\"289\" class=\"alignnone size-medium wp-image-2261\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangeaddress02.jpg?resize=400%2C289&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangeaddress02.jpg?resize=580%2C419&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangeaddress02.jpg?w=614&amp;ssl=1 614w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Address \u30d7\u30ed\u30d1\u30c6\u30a3 Address \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbAddressLocal &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2278,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[320,321,270,63,38,323,269,322],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangeaddress02-400x2891.jpg?fit=400%2C289&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-Ap","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2257"}],"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=2257"}],"version-history":[{"count":11,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2257\/revisions"}],"predecessor-version":[{"id":3358,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2257\/revisions\/3358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2278"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}