{"id":2150,"date":"2015-06-04T08:30:58","date_gmt":"2015-06-03T23:30:58","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2150"},"modified":"2015-06-05T08:08:58","modified_gmt":"2015-06-04T23:08:58","slug":"rangevalue","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/rangevalue\/","title":{"rendered":"\u30bb\u30eb\u306b\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u30fb\u30bb\u30eb\u306e\u5024\u3092\u53c2\u7167\u3059\u308b\uff08Value \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>Value \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>Value \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u306f\u3001\u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u5024\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u3067\u304d\u308b\u5024\u306f\u3001\u6570\u5024\u30fb\u6570\u5f0f\u30fb\u65e5\u4ed8\u30fb\u6587\u5b57\u5217\u306a\u3069\u901a\u5e38\u30bb\u30eb\u306b\u5165\u529b\u3067\u304d\u308b\u3082\u306e\u3068\u540c\u3058\u5024\u3067\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <span class=\"red\">\uff1c \u53d6\u5f97 \uff1e<\/span><br \/>\n  <em>result<\/em> = <em>Object<\/em>.<strong>Value<\/strong><\/p>\n<p>  <span class=\"red\">\uff1c \u8a2d\u5b9a \uff1e<\/span><br \/>\n  <em>Object<\/em>.<strong>Value<\/strong> = <em>variant<\/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>variant&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30bb\u30eb\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\uff1aVariant\uff09\u3002<\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30bb\u30eb\u306e\u5024\uff08\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\uff1aVariant\uff09<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong>Value \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u3001\u5024\u3092\u53d6\u5f97\u3059\u308b\u3068\u304d\u3001\u30bb\u30eb\u304c\u7a7a\u767d\u306e\u5834\u5408\u306f\u3001\u623b\u308a\u5024 <em>result<\/em> \u306f\u3001<span class=\"blue\"><strong>Empty \u5024<\/strong><\/span>\u3068\u306a\u308a\u307e\u3059\u3002\uff08\u203b \u53d6\u5f97\u3057\u305f\u5024\u304c <strong>Empty \u5024<\/strong>\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u308b\u306b\u306f <a href=\"https:\/\/excelwork.info\/excel\/isempty\/\">IsEmpty \u95a2\u6570<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\uff09<\/p>\n<p class=\"caution4\"><strong>Value \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u3001\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u3082\u66f8\u5f0f\u306f\u8a2d\u5b9a\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u5fc5\u8981\u304c\u3042\u308c\u3070\u3001<a href=\"https:\/\/excelwork.info\/excel\/numberformatp\/\">NumberFormat \u30d7\u30ed\u30d1\u30c6\u30a3<\/a> \u7b49\u3092\u4f7f\u7528\u3057\u3066\u66f8\u5f0f\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/><br \/>\n<h2>Value \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=\"Value \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Value()\r\n\r\n    Range(\"B2\").Select\r\n\r\n    '\u66f8\u5f0f\u306e\u8a2d\u5b9a\r\n    ActiveCell.NumberFormat = \"m\u6708d\u65e5\"\r\n\r\n    '\u5024\u306e\u8a2d\u5b9a\r\n    ActiveCell.Value = \"2015\/1\/1\"\r\n    \r\n    'B2\u304b\u3089F5\u306e\u7bc4\u56f2\u306e\u30bb\u30eb\u3092\u53d6\u5f97\u3001B8\u304b\u3089F10\u306e\u7bc4\u56f2\u306b\u305d\u306e\u5024\u3092\u8a2d\u5b9a\r\n    Range(\"B8:F10\").Value = Range(\"B2:F5\").Value\r\n    \r\n    'B11\u304b\u3089F11\u306e\u7bc4\u56f2\u306e\u30bb\u30eb\u306b\u5024\u3092\u8a2d\u5b9a\r\n    Range(\"B11:F11\").Value = \"VBA\u5b9f\u884c\"\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:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue01.jpg?ssl=1\" rel=\"lightbox[2150]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue01.jpg?resize=400%2C207&#038;ssl=1\" alt=\"Range.Value \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b01\" width=\"400\" height=\"207\" class=\"alignnone size-medium wp-image-2151\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue01.jpg?resize=400%2C207&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue01.jpg?resize=580%2C299&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue01.jpg?w=612&amp;ssl=1 612w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue02.jpg?ssl=1\" rel=\"lightbox[2150]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue02.jpg?resize=400%2C207&#038;ssl=1\" alt=\"Range.Value \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f8b02\" width=\"400\" height=\"207\" class=\"alignnone size-medium wp-image-2152\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue02.jpg?resize=400%2C207&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue02.jpg?resize=580%2C300&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue02.jpg?w=617&amp;ssl=1 617w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Value \u30d7\u30ed\u30d1\u30c6\u30a3 Value \u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u5024\u3092\u8a2d\u5b9a &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2156,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[270,302,63,38,269],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/rangevalue01-400x2071.jpg?fit=400%2C207&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-yG","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2150"}],"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=2150"}],"version-history":[{"count":5,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2150\/revisions"}],"predecessor-version":[{"id":2190,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2150\/revisions\/2190"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2156"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}