{"id":2702,"date":"2015-07-22T08:04:49","date_gmt":"2015-07-21T23:04:49","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2702"},"modified":"2015-08-26T00:49:22","modified_gmt":"2015-08-25T15:49:22","slug":"patterngradient","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/patterngradient\/","title":{"rendered":"\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\uff08Pattern \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbGradient \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>\u30bb\u30eb\u306e\u80cc\u666f\u306b\u306b\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n<div class=\"m30-l\">\n<p><strong>Pattern \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3059\u308b\u3068\u30bb\u30eb\u306e\u80cc\u666f\u306b\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\uff08\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u307e\u305f\u306f\u3001\u56db\u89d2\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\uff09\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n    \u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u6210\u3059\u308b\u8272\u306e\u8a2d\u5b9a\u306b\u306f\u3001<strong>ColorStops \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n    <strong>\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong>\u3067\u3001\u8272\u306e\u89d2\u5ea6\u3092\u6307\u5b9a\u3059\u308b\u306b\u306f\u3001<strong>Gradient \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e Degree \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<strong>\u56db\u89d2\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong>\u3067\u3001\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u4e0a\u4e0b\u5de6\u53f3\u305d\u308c\u305e\u308c\u306e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u306b\u306f\u3001<strong>Gradient \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e RectangleLeft\u30fbRectangleRight\u30fbRectangleTop\u30fbRectangleBottom \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<h3>Pattern \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Pattern<\/strong> = { <strong>xlPatternLinearGradient<\/strong> | <strong>xlPatternRectangularGradient<\/strong> }<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\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>Interior \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>xlPatternLinearGradient\uff084000\uff09&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>xlPatternRectangularGradient\uff084001\uff09&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>\u56db\u89d2\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution7\"><strong>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong>\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u306e\u306f\u3001<strong>Excel 2007<\/strong> \u4ee5\u964d\u3067\u3059\u3002<\/p>\n<\/p><\/div>\n<br \/>\n<h3>Gradient \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h3>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>Degree<\/strong> = <em>angle<\/em><\/p>\n<p>    <strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>RectangleLeft<\/strong> = <em>d_left<\/em><br \/>\n    <strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>RectangleRight<\/strong> = <em>d_right<\/em><br \/>\n    <strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>RectangleTop<\/strong> = <em>d_top<\/em><br \/>\n    <strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>RectangleBottom<\/strong> = <em>d_bottom<\/em><\/p><\/div>\n<br \/>\n<h4>Gradient \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8aac\u660e<\/h4>\n<div class=\"m30-l\">\n<p><span class=\"red\"><strong>Degree \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/span><br \/>\n      <strong>\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong>\u3067\u3001\u8272\u304c\u5909\u5316\u3059\u308b\u89d2\u5ea6\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<div class=\"m30-l\">\n<p><span class=\"red\"><strong>RectangleLeft \u30d7\u30ed\u30d1\u30c6\u30a3 \u4ed6<\/strong><\/span><br \/>\n      <strong>\u56db\u89d2\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong>\u3067\u3001\u4e0a\u4e0b\u5de6\u53f3\u306e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>angle&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u8272\u304c\u5909\u5316\u3059\u308b\u65b9\u5411\u306e\u89d2\u5ea6\uff080 \uff5e 360\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\u3000<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"100\" bgcolor=\"#ffffcc\"><strong>\u8a2d\u5b9a\u3059\u308b\u89d2\u5ea6<\/strong><\/td>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td align = \"center\" width=\"100\">0<\/td>\n<td align = \"center\" width=\"200\">1 \u756a\u76ee\u306e\u8272\u304c\u5de6<br \/>\n\t    <\/tr>\n<tr>\n<td align = \"center\" width=\"100\">90<\/td>\n<td align = \"center\" width=\"200\">1 \u756a\u76ee\u306e\u8272\u304c\u4e0a<br \/>\n\t    <\/tr>\n<tr>\n<td align = \"center\" width=\"100\">180<\/td>\n<td align = \"center\" width=\"200\">1 \u756a\u76ee\u306e\u8272\u304c\u53f3<br \/>\n\t    <\/tr>\n<tr>\n<td align = \"center\" width=\"100\">360<\/td>\n<td align = \"center\" width=\"200\">1 \u756a\u76ee\u306e\u8272\u304c\u4e0b<\/td>\n<\/tr>\n<\/table>\n<\/li>\n<p><\/p>\n<li>d_left&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u56db\u89d2\u5f62\u306e\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u305f\u6642\u306e\u5de6\u4f4d\u7f6e\uff08 <strong>0 \uff5e 1<\/strong> \uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>d_right&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u56db\u89d2\u5f62\u306e\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u305f\u6642\u306e\u53f3\u4f4d\u7f6e\uff08 <strong>0 \uff5e 1<\/strong> \uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>d_top&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u56db\u89d2\u5f62\u306e\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u305f\u6642\u306e\u4e0a\u4f4d\u7f6e\uff08 <strong>0 \uff5e 1<\/strong> \uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>d_bottom&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u56db\u89d2\u5f62\u306e\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u305f\u6642\u306e\u4e0b\u4f4d\u7f6e\uff08 <strong>0 \uff5e 1<\/strong> \uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u300c<strong>1 \u756a\u76ee\u306e\u8272<\/strong>\u300d\u3068\u306f\u3001<strong>ColorStops \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3067\u6700\u521d\u306b\u8ffd\u52a0\u3059\u308b\u8272\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>      \u3000\uff08\u4f8b\uff09<br \/>\n      \u3000\u3000Range(&#8220;A1&#8221;).Interior.Gradient.Degree = 90<br \/>\n      \u3000\u3000<span class=\"green\">&#8216;\u2193\u3053\u3053\u3067\u8ffd\u52a0\u3057\u305f\u8272\u304c\u4e0a\u306b\u306a\u308b<\/span><br \/>\n      \u3000\u3000Range(&#8220;A1&#8221;).Interior.Gradient.ColorStops.Add(0).Color = RGB(255,0,0)<br \/>\n      \u3000\u3000Range(&#8220;A1&#8221;).Interior.Gradient.ColorStops.Add(1).Color = RGB(0,255,0)\n    <\/p>\n<\/p><\/div>\n<br \/>\n<h3>ColorsStops \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08Count \u30d7\u30ed\u30d1\u30c6\u30a3\uff09<\/h3>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>ColorStops<\/strong>.<strong>Count<\/strong><\/p><\/div>\n<br \/>\n<h4>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8aac\u660e<\/h4>\n<div class=\"m30-l\">\n<p>\u4f5c\u696d\u4e2d\u306e\u30bb\u30eb\u306b\u304a\u3051\u308b <strong>ColorStops<\/strong> \u306e\u6570\uff08\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u6210\u3057\u3066\u3044\u308b\u8272\u306e\u6570\uff09\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<strong>Count \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u306f\u3001\u53d6\u5f97\u306e\u307f\u3067\u3001\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\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<\/ul><\/div>\n<br \/>\n<h3>ColorsStops \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30e1\u30bd\u30c3\u30c9\uff09<\/h3>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>ColorStops<\/strong>.<strong>Add<\/strong> ( <em>position<\/em> ).<strong>Color<\/strong> = <em>rgb<\/em><\/p>\n<p>    <em>object<\/em>.<strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>ColorStops<\/strong>.<strong>Add<\/strong> ( <em>position<\/em> ).<strong>ThemeColor<\/strong> = <em>index<\/em><\/p>\n<p>    <em>object<\/em>.<strong>Interior<\/strong>.<strong>Gradient<\/strong>.<strong>ColorStops<\/strong>.<strong>Clear<\/strong><\/p><\/div>\n<br \/>\n<h4>\u30e1\u30bd\u30c3\u30c9\u306e\u8aac\u660e<\/h4>\n<div class=\"m30-l\">\n<p><span class=\"red\"><strong>Add \u30e1\u30bd\u30c3\u30c9<\/strong><\/span><br \/>\n      <strong>ColorStops<\/strong> \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<strong>Color \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3084<strong>ThemeColor \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbTintAndShade \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u3001\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u8272\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<span class=\"red\">\u305f\u3060\u3057\u3001<strong>ColorIndex \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093<\/span>\u3002<\/p>\n<\/p><\/div>\n<div class=\"m30-l\">\n<p><span class=\"red\"><strong>Clear \u30e1\u30bd\u30c3\u30c9<\/strong><\/span><br \/>\n      \u73fe\u5728\u306e ColorStops \u3092\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u6210\u3057\u3066\u3044\u308b\u8272\u3092\u3059\u3079\u3066\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\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>position&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u6210\u3057\u3066\u3044\u308b\u8272\u3092\u8ffd\u52a0\u3059\u308b\u4f4d\u7f6e\u3092\u500d\u7cbe\u5ea6\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\uff08Double\uff09\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\uff08 <strong>0<\/strong>\uff1a\u6700\u521d\u306e\u8272\u3001<strong>1<\/strong>\uff1a\u6700\u5f8c\u306e\u8272\u3001\uff13\u8272\u4ee5\u4e0a\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f\u3001<strong>0 \u3088\u308a\u5927\u304d\u304f 1 \u672a\u6e80\u306e\u5024<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>rgb&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>RGB \u5024<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<strong>RGB \u95a2\u6570<\/strong>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\uff08 <a href=\"https:\/\/excelwork.info\/excel\/colorrgb\/\">\u8272\u306e\u8a2d\u5b9a<\/a> \u3092\u53c2\u7167 \uff09\u3002<\/li>\n<li>index&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>\u30c6\u30fc\u30de\u30ab\u30e9\u30fc<\/strong>\u306e\u57fa\u672c\u8272\u3092\u8868\u3059<strong>MsoThemeColorSchemeindex \u5217\u6319\u578b<\/strong>\u306e\u5b9a\u6570\u307e\u305f\u306f\u5024\uff08<strong>1 \uff5e 12<\/strong>\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\uff08 <a href=\" https:\/\/excelwork.info\/excel\/themecolorshade\/\">ThemeColor \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbTintAndShade \u30d7\u30ed\u30d1\u30c6\u30a3<\/a> \u3092\u53c2\u7167 \uff09<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a \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=\"\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Gradient()\r\n    \r\n    Worksheets(\"Sheet3\").Activate\r\n    \r\n    With Range(\"C2\").Interior\r\n    \r\n        '\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\r\n        .Pattern = xlPatternLinearGradient\r\n        \r\n        '\u8272\u304c\u5909\u5316\u3059\u308b\u65b9\u5411\u306e\u89d2\u5ea6\u309290\u5ea6\u306b\u8a2d\u5b9a\r\n        .Gradient.Degree = 90\r\n        \r\n        '\u8272\u60c5\u5831\u3092\u30af\u30ea\u30a2\r\n        .Gradient.ColorStops.Clear\r\n        \r\n        '\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3059\u308b\u8272\u3092\u8a2d\u5b9a\r\n        .Gradient.ColorStops.Add(0).Color = rgbDarkBlue\r\n        .Gradient.ColorStops.Add(1).Color = rgbAzure\r\n\r\n    End With\r\n    \r\n    With Range(\"E2\").Interior\r\n    \r\n        '\u7dda\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\r\n        .Pattern = xlPatternLinearGradient\r\n        \r\n        '\u8272\u304c\u5909\u5316\u3059\u308b\u65b9\u5411\u306e\u89d2\u5ea6\u309230\u5ea6\u306b\u8a2d\u5b9a\r\n        .Gradient.Degree = 30\r\n        \r\n        '\u8272\u60c5\u5831\u3092\u30af\u30ea\u30a2\r\n        .Gradient.ColorStops.Clear\r\n        \r\n        '\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3059\u308b\u8272\u3092\u8a2d\u5b9a\r\n        .Gradient.ColorStops.Add(0).Color = rgbRed\r\n        .Gradient.ColorStops.Add(0.3).Color = rgbOrange\r\n        .Gradient.ColorStops.Add(0.8).Color = rgbYellow\r\n        .Gradient.ColorStops.Add(1).Color = rgbGreen\r\n\r\n    End With\r\n    \r\n    With Range(\"C5\").Interior\r\n        \r\n        '\u56db\u89d2\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\r\n        .Pattern = xlPatternRectangularGradient\r\n        \r\n        '\u4f4d\u7f6e\u3092\u8a2d\u5b9a\r\n        .Gradient.RectangleLeft = 0.5\r\n        .Gradient.RectangleRight = 0.5\r\n        .Gradient.RectangleTop = 0.5\r\n        .Gradient.RectangleBottom = 0.5\r\n        \r\n        '\u8272\u60c5\u5831\u3092\u30af\u30ea\u30a2\r\n        .Gradient.ColorStops.Clear\r\n        \r\n        '\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3059\u308b\u8272\u3092\u8a2d\u5b9a\r\n        .Gradient.ColorStops.Add(0).Color = RGB(255, 0, 0)\r\n        .Gradient.ColorStops.Add(0.5).Color = RGB(0, 0, 255)\r\n        .Gradient.ColorStops.Add(1).Color = RGB(255, 255, 0)\r\n        \r\n    End With\r\n\r\n    With Range(\"E5\").Interior\r\n        \r\n        '\u56db\u89d2\u5f62\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\r\n        .Pattern = xlPatternRectangularGradient\r\n        \r\n        '\u4f4d\u7f6e\u3092\u8a2d\u5b9a\r\n        .Gradient.RectangleLeft = 0\r\n        .Gradient.RectangleRight = 1\r\n        .Gradient.RectangleTop = 0.5\r\n        .Gradient.RectangleBottom = 0.5\r\n        \r\n        '\u8272\u60c5\u5831\u3092\u30af\u30ea\u30a2\r\n        .Gradient.ColorStops.Clear\r\n        \r\n        '\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3059\u308b\u8272\u3092\u8a2d\u5b9a\uff08\u30c6\u30fc\u30de\u30ab\u30e9\u30fc\u4f7f\u7528\uff09\r\n        .Gradient.ColorStops.Add(0).ThemeColor = msoThemeAccent2\r\n        .Gradient.ColorStops.Add(0).TintAndShade = 0.4\r\n        .Gradient.ColorStops.Add(1).ThemeColor = msoThemeAccent6\r\n        .Gradient.ColorStops.Add(1).TintAndShade = -0.6\r\n        \r\n    End With\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\/patterngradient01.jpg?ssl=1\" rel=\"lightbox[2702]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/patterngradient01.jpg?resize=400%2C241&#038;ssl=1\" alt=\"\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a \u4f8b\" width=\"400\" height=\"241\" class=\"alignnone size-medium wp-image-2732\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/patterngradient01.jpg?resize=400%2C241&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/patterngradient01.jpg?resize=580%2C350&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/patterngradient01.jpg?w=852&amp;ssl=1 852w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30bb\u30eb\u306e\u80cc\u666f\u306b\u306b\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b Pattern \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3059\u308b\u3068\u30bb &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2780,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[404,426,423,417,413,424,425,38,269],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/patterngradient01-400x2411.jpg?fit=400%2C241&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-HA","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2702"}],"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=2702"}],"version-history":[{"count":38,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2702\/revisions"}],"predecessor-version":[{"id":3347,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2702\/revisions\/3347"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2780"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}