{"id":2093,"date":"2015-05-29T10:38:50","date_gmt":"2015-05-29T01:38:50","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2093"},"modified":"2015-08-26T01:21:52","modified_gmt":"2015-08-25T16:21:52","slug":"endproperty","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/endproperty\/","title":{"rendered":"\u7d42\u7aef\u30bb\u30eb\u3092\u53c2\u7167\u3059\u308b\uff08End \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>End \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>End \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u306f\u3001\u57fa\u6e96\u3068\u306a\u308b\u30bb\u30eb\u304c\u542b\u307e\u308c\u308b\u9818\u57df\u306e\u6307\u5b9a\u3057\u305f\u65b9\u5411\uff08\u5de6\u53f3\u4e0a\u4e0b\uff09\u306e\u7d42\u7aef\u306b\u4f4d\u7f6e\u3059\u308b\u30bb\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\u623b\u308a\u5024\u306f\u3001<strong>\u5358\u4e00\u306e\u30bb\u30eb\u3092\u8868\u3059 Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3067\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <em>Object<\/em>.<strong>End<\/strong> ( <em>direction<\/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>\u3002<\/li>\n<li>direction&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u7d42\u7aef\u306e\u6761\u4ef6\u3092\u793a\u3059\u5b9a\u6570\uff08\u4ee5\u4e0b\u306e\u8868\u3092\u53c2\u7167\uff09<br \/>\n<\/p>\n<div class=\"m60-l\">\n<strong>\u3010\u7d42\u7aef\u306e\u6761\u4ef6\u3092\u793a\u3059\u5b9a\u6570\u4e00\u89a7\u8868\u3011<\/strong><\/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=\"150\" bgcolor=\"#ffffcc\"><strong>\u610f\u5473<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">xlToLeft<\/td>\n<td width=\"150\">-4159<\/td>\n<td width=\"150\">\u5de6\u65b9\u5411\u306e\u7d42\u7aef<\/td>\n<\/tr>\n<tr>\n<td width=\"150\">xlToRight<\/td>\n<td width=\"150\">-4161<\/td>\n<td width=\"150\">\u53f3\u65b9\u5411\u306e\u7d42\u7aef<\/td>\n<\/tr>\n<tr>\n<td width=\"150\">xlUp<\/td>\n<td width=\"150\">-4162<\/td>\n<td width=\"150\">\u4e0a\u65b9\u5411\u306e\u7d42\u7aef<\/td>\n<\/tr>\n<tr>\n<td width=\"150\">xlDown<\/td>\n<td width=\"150\">-4121<\/td>\n<td width=\"150\">\u4e0b\u65b9\u5411\u306e\u7d42\u7aef<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/ul>\n<\/div>\n<br \/><br \/><br \/>\n<h2>End \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 \u305d\u306e\uff11<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"End \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4f7f\u7528\u4f8b \uff11\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Endp1()\r\n\r\n    '\u30bb\u30eb\u300cC6\u300d\u304b\u3089\u306e\u4e0a\u4e0b\u5de6\u53f3\u305d\u308c\u305e\u308c\u306e\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u8868\u793a\r\n\r\n\r\n    Dim Laddress, Raddress, Uaddress, Daddress\r\n    \r\n    Range(\"C6\").Activate\r\n\r\n    '\u5de6\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\r\n    Laddress = ActiveCell.End(xlToLeft).Address\r\n    \r\n    '\u53f3\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\r\n    Raddress = ActiveCell.End(xlToRight).Address\r\n    \r\n    '\u4e0a\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\r\n    Uaddress = ActiveCell.End(xlUp).Address\r\n\r\n    '\u4e0b\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\r\n    Daddress = ActiveCell.End(xlDown).Address\r\n    \r\n    \r\n    MsgBox \"\u5de6\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Laddress & Chr(13) & _\r\n           \"\u53f3\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Raddress & Chr(13) & _\r\n           \"\u4e0a\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Uaddress & Chr(13) & _\r\n           \"\u4e0b\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Daddress & Chr(13)\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:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp01.jpg?ssl=1\" rel=\"lightbox[2093]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp01.jpg?resize=400%2C290&#038;ssl=1\" alt=\"End \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b\uff11\" width=\"400\" height=\"290\" class=\"alignnone size-medium wp-image-2094\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp01.jpg?resize=400%2C290&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp01.jpg?resize=580%2C421&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp01.jpg?w=757&amp;ssl=1 757w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><br \/>\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9 \u305d\u306e\uff12<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"End \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4f7f\u7528\u4f8b \uff12\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Endp2()\r\n\r\n    '\u30bb\u30eb\u300cE5\u300d\u304b\u3089\u306e\u4e0a\u4e0b\u5de6\u53f3\u305d\u308c\u305e\u308c\u306e\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u8868\u793a\r\n    '\u9014\u4e2d\u306b\u7a7a\u767d\u30bb\u30eb\u304c\u3042\u308b\u5834\u5408\r\n\r\n    Dim Laddress, Raddress, Uaddress, Daddress\r\n    \r\n    Range(\"E5\").Activate\r\n\r\n    '\u5de6\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\r\n    Laddress = ActiveCell.End(xlToLeft).Address\r\n    \r\n    '\u53f3\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u3059\u308b\u304c\u9014\u4e2d\u7a7a\u767d\u304c\u3042\u308b\r\n    Raddress = ActiveCell.End(xlToRight).Address\r\n    \r\n    '\u4e0a\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\r\n    Uaddress = ActiveCell.End(xlUp).Address\r\n\r\n    '\u4e0b\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u3059\u308b\u304c\u9014\u4e2d\u7a7a\u767d\u304c\u3042\u308b\r\n    Daddress = ActiveCell.End(xlDown).Address\r\n    \r\n\r\n    MsgBox \"\u5de6\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Laddress & Chr(13) & _\r\n           \"\u53f3\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Raddress & Chr(13) & _\r\n           \"\u4e0a\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Uaddress & Chr(13) & _\r\n           \"\u4e0b\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Daddress & Chr(13)\r\n           \r\n    '\u7a7a\u767d\u30bb\u30eb\u3092\u8003\u616e\u3057\u3066\u3001\u53f3\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u4fee\u6b63\r\n    Raddress = Cells(ActiveCell.Row, Columns.Count).End(xlToLeft).Address\r\n            \r\n    '\u7a7a\u767d\u30bb\u30eb\u3092\u8003\u616e\u3057\u3066\u3001\u4e0b\u7d42\u7aef\u30bb\u30eb\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u4fee\u6b63\r\n    Daddress = Cells(Rows.Count, ActiveCell.Column).End(xlUp).Address\r\n           \r\n           \r\n    MsgBox \"\u5de6\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Laddress & Chr(13) & _\r\n           \"\u53f3\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Raddress & Chr(13) & _\r\n           \"\u4e0a\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Uaddress & Chr(13) & _\r\n           \"\u4e0b\u7d42\u7aef\u30bb\u30eb\u306e\u30a2\u30c9\u30ec\u30b9\uff1a\" & Daddress & Chr(13)\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:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02a.jpg?ssl=1\" rel=\"lightbox[2093]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02a.jpg?resize=400%2C185&#038;ssl=1\" alt=\"End \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b\uff12a\" width=\"400\" height=\"185\" class=\"alignnone size-medium wp-image-2095\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02a.jpg?resize=400%2C185&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02a.jpg?resize=580%2C269&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02a.jpg?w=684&amp;ssl=1 684w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u6700\u7d42\u884c\u307e\u3067\u306e\u9593\u306b\u3001<strong>\u7a7a\u767d\u30bb\u30eb<\/strong>\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u300cVBA\u30bd\u30fc\u30b9 \u305d\u306e\uff11\u300d\u306e\u65b9\u6cd5\u3060\u3068\u300c\u30c7\u30fc\u30bf\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u7bc4\u56f2\u3067\u306e\u6b63\u78ba\u306a\u7d42\u7aef\u30bb\u30eb\u300d\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u3001<strong>\u4e0b\u65b9\u5411\u7d42\u7aef\u30bb\u30eb<\/strong>\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<span class=\"blue\">\u53d6\u5f97\u3057\u305f\u3044\u5217\u306e\u6700\u7d42\u884c\u304b\u3089\u4e0a\u65b9\u5411\u306b\u63a2\u67fb<\/span>\u3001<strong>\u53f3\u65b9\u5411\u7d42\u7aef\u30bb\u30eb<\/strong>\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<span class=\"blue\">\u53d6\u5f97\u3057\u305f\u3044\u884c\u306e\u6700\u7d42\u5217\u304b\u3089\u5de6\u65b9\u5411\u306b\u63a2\u67fb<\/span>\u3059\u308b\u3068\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br \/>\n  <strong>\u6700\u7d42\u884c<\/strong>\u306f\u3001<span class=\"red\"><strong>Rows.Count<\/strong><\/span> \u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br \/>\n  <strong>\u6700\u7d42\u5217<\/strong>\u306f\u3001<span class=\"red\"><strong>Columns.Count<\/strong><\/span> \u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4fee\u6b63\u524d<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02b.jpg?ssl=1\" rel=\"lightbox[2093]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02b.jpg?resize=228%2C232&#038;ssl=1\" alt=\"End \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b\uff12b\" width=\"228\" height=\"232\" class=\"alignnone size-full wp-image-2096\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u4fee\u6b63\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02c.jpg?ssl=1\" rel=\"lightbox[2093]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02c.jpg?resize=233%2C232&#038;ssl=1\" alt=\"End \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b\uff12c\" width=\"233\" height=\"232\" class=\"alignnone size-full wp-image-2097\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02c.jpg?w=233&amp;ssl=1 233w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02c.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp02c.jpg?resize=100%2C100&amp;ssl=1 100w\" sizes=\"(max-width: 233px) 100vw, 233px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>End \u30d7\u30ed\u30d1\u30c6\u30a3 End \u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u57fa\u6e96\u3068\u306a\u308b\u30bb\u30eb\u304c\u542b\u307e\u308c\u308b\u9818\u57df\u306e\u6307\u5b9a\u3057\u305f &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2111,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[286,270,63,38,269,287],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/endp01-400x2901.jpg?fit=400%2C290&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-xL","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2093"}],"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=2093"}],"version-history":[{"count":6,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2093\/revisions"}],"predecessor-version":[{"id":3362,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2093\/revisions\/3362"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2111"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}