{"id":2621,"date":"2015-07-18T08:21:25","date_gmt":"2015-07-17T23:21:25","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2621"},"modified":"2015-07-18T08:21:25","modified_gmt":"2015-07-17T23:21:25","slug":"colorrgb","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/colorrgb\/","title":{"rendered":"\u8272\u306e\u8a2d\u5b9a\uff08Color \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbRGB \u95a2\u6570\uff09"},"content":{"rendered":"<h2>Color \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>Color \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u306f\u3001\u6307\u5b9a\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e<strong>\u8272<\/strong>\u3092\u53d6\u5f97\u30fb\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u306b\u306f\u3001<strong>RGB \u5024<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<strong>RGB \u5024<\/strong>\u306f\u3001<strong>RGB \u95a2\u6570<\/strong>\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08 \u21d2 <strong>RGB \u5024<\/strong>\u306b\u95a2\u3057\u3066\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/rgbxlrgbcolor\/\">RGB \u5024\u4e00\u89a7\u8868<\/a> \u3092\u53c2\u7167\uff09<\/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>Color<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>Object<\/em>.<strong>Color<\/strong> = <em>rgb<\/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>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n      <strong>Border \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u7f6b\u7dda\uff09<\/strong>\u3001<strong>Borders \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u8f2a\u90ed\u7dda\uff09<\/strong>\u3001<strong>Font \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u6587\u5b57\uff09<\/strong>\u3001<strong>Interior \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30bb\u30eb\uff09<\/strong>\u3001<strong>FormatColor\uff08\u30ab\u30e9\u30fc\u30b9\u30b1\u30fc\u30eb\uff09<\/strong> \u306a\u3069<\/li>\n<li>rgb&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>RGB \u5024<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u6307\u5b9a\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b <strong>RGB \u5024<\/strong><\/li>\n<\/ul>\n<\/div>\n<br \/><br \/>\n<h2>RGB \u95a2\u6570<\/h2>\n<div class=\"m30-l\">\n<p><strong>RGB \u95a2\u6570<\/strong>\u306f\u3001\u8d64\u30fb\u7dd1\u30fb\u9752\u306e\u660e\u308b\u3055\u3092\u6570\u5024\u3067\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067<strong>\u8272<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>result<\/em> = <strong>RGB<\/strong> ( <em>red<\/em>, <em>green<\/em>, <em>blue<\/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>red&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u8d64\u8272\u306e\u5f37\u3055\u3092\u8868\u3059 <strong>0 \uff5e 255 \u306e\u6574\u6570\u5024<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>green&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u7dd1\u8272\u306e\u5f37\u3055\u3092\u8868\u3059 <strong>0 \uff5e 255 \u306e\u6574\u6570\u5024<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>blue&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u9752\u8272\u306e\u5f37\u3055\u3092\u8868\u3059 <strong>0 \uff5e 255 \u306e\u6574\u6570\u5024<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u8272\u3092\u8868\u3059 <strong>RGB \u5024<\/strong><\/li>\n<\/ul>\n<br \/>\n<\/div>\n<br \/><br \/>\n<h2>Color \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbRGB \u95a2\u6570 \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=\"Color \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbRGB \u95a2\u6570 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_ColorRGB()\r\n\r\n    '\u30bb\u30eb\u300cB2\u300d\u3092\u8d64\u3067\u5857\u308a\u3064\u3076\u3057\u307e\u3059\r\n    Range(\"B2\").Interior.Color = RGB(255, 0, 0)\r\n    \r\n    '\u30bb\u30eb\u7bc4\u56f2\u300cB4\uff1aM4\u300d\u306e\u6587\u5b57\u8272\u3092\u9752\u306b\u3057\u307e\u3059\r\n    Range(\"B4:M4\").Font.Color = rgbBlue\r\n    \r\n    '\u30bb\u30eb\u7bc4\u56f2\u300cA5\uff1aA20\u300d\u306e\u6587\u5b57\u8272\u3092\u8d64\u306b\u3057\u307e\u3059\r\n    Range(\"A5:A20\").Font.Color = 255\r\n    \r\n\r\n    '\u30bb\u30eb\u300cB5\u300d\u304b\u3089\u300cM20\u300d\u306b\u30ab\u30e9\u30fc\u30b9\u30b1\u30fc\u30eb\r\n    Dim myColorScale As ColorScale\r\n    Set myColorScale = Range(\"B5:M20\").FormatConditions.AddColorScale(3)\r\n    myColorScale.ColorScaleCriteria(1).FormatColor.Color = RGB(0, 255, 255)\r\n    myColorScale.ColorScaleCriteria(2).FormatColor.Color = RGB(255, 255, 0)\r\n    myColorScale.ColorScaleCriteria(3).FormatColor.Color = RGB(255, 0, 0)\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\/07\/heikinkion01.jpg?ssl=1\" rel=\"lightbox[2621]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/heikinkion01.jpg?resize=400%2C177&#038;ssl=1\" alt=\"\u5168\u56fd\u5404\u5e74\u306e\u5e73\u5747\u6c17\u6e29\u4e00\u89a7\u8868\" width=\"400\" height=\"177\" class=\"alignnone size-medium wp-image-2627\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/heikinkion01.jpg?resize=400%2C177&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/heikinkion01.jpg?resize=580%2C257&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/heikinkion01.jpg?w=1042&amp;ssl=1 1042w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>Color \u30d7\u30ed\u30d1\u30c6\u30a3 Color \u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u6307\u5b9a\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8272\u3092\u53d6\u5f97 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2665,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[37],"tags":[406,407,404,408,410,409,403,63,38],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/heikinkion01-400x1771.jpg?fit=400%2C177&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s4Ye9i-colorrgb","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2621"}],"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=2621"}],"version-history":[{"count":7,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2621\/revisions"}],"predecessor-version":[{"id":2664,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2621\/revisions\/2664"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2665"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}