{"id":11938,"date":"2019-07-17T09:23:30","date_gmt":"2019-07-17T00:23:30","guid":{"rendered":"https:\/\/elleneast.com\/?p=11938"},"modified":"2019-07-17T09:23:30","modified_gmt":"2019-07-17T00:23:30","slug":"%e3%80%90vb-net%e3%80%91closedxml%ef%bc%9a%e6%9d%a1%e4%bb%b6%e4%bb%98%e3%81%8d%e6%9b%b8%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/elleneast.com\/?p=11938","title":{"rendered":"\u3010VB.NET\u3011ClosedXML\uff1a\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f"},"content":{"rendered":"[include-page id=\u201d11760\u2033]\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/elleneast.com\/?p=11938\/#%E3%82%BB%E3%83%AB%E3%81%AE%E5%80%A4%E3%81%8C_2_%E4%BB%A5%E4%B8%8A_3_%E4%BB%A5%E4%B8%8B%E3%81%AA%E3%82%89%E3%82%BB%E3%83%AB%E3%81%AE%E8%83%8C%E6%99%AF%E8%89%B2%E3%82%92%E8%B5%A4%E3%81%AB%E3%81%99%E3%82%8B\" >\u30bb\u30eb\u306e\u5024\u304c 2 \u4ee5\u4e0a 3 \u4ee5\u4e0b\u306a\u3089\u30bb\u30eb\u306e\u80cc\u666f\u8272\u3092\u8d64\u306b\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/elleneast.com\/?p=11938\/#3_%E8%89%B2%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%AB%E3%81%AE%E9%81%A9%E7%94%A8\" >3 \u8272\u30b9\u30b1\u30fc\u30eb\u306e\u9069\u7528<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/elleneast.com\/?p=11938\/#%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%82%BB%E3%83%83%E3%83%88%E3%81%AE%E9%81%A9%E7%94%A8\" >\u30a2\u30a4\u30b3\u30f3\u30bb\u30c3\u30c8\u306e\u9069\u7528<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/elleneast.com\/?p=11938\/#%E3%83%87%E3%83%BC%E3%82%BF%E3%83%90%E3%83%BC%E3%81%AE%E9%81%A9%E7%94%A8\" >\u30c7\u30fc\u30bf\u30d0\u30fc\u306e\u9069\u7528<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/elleneast.com\/?p=11938\/#%E5%BC%8F%E3%81%AE%E4%BD%BF%E7%94%A8\" >\u5f0f\u306e\u4f7f\u7528<\/a><\/li><\/ul><\/nav><\/div>\n<h2 id=\"i-0\"><span class=\"ez-toc-section\" id=\"%E3%82%BB%E3%83%AB%E3%81%AE%E5%80%A4%E3%81%8C_2_%E4%BB%A5%E4%B8%8A_3_%E4%BB%A5%E4%B8%8B%E3%81%AA%E3%82%89%E3%82%BB%E3%83%AB%E3%81%AE%E8%83%8C%E6%99%AF%E8%89%B2%E3%82%92%E8%B5%A4%E3%81%AB%E3%81%99%E3%82%8B\"><\/span>\u30bb\u30eb\u306e\u5024\u304c 2 \u4ee5\u4e0a 3 \u4ee5\u4e0b\u306a\u3089\u30bb\u30eb\u306e\u80cc\u666f\u8272\u3092\u8d64\u306b\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre class=\"lang:vbnet decode:true\">ws.FirstCell.SetValue(1) _\n  .CellBelow.SetValue(1) _\n  .CellBelow.SetValue(2) _\n  .CellBelow.SetValue(3) _\n  .CellBelow.SetValue(4)\n\nws.RangeUsed.AddConditionalFormat.WhenBetween(2, 3) _\n  .Fill.SetBackgroundColor(XLColor.Red)\n<\/pre>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_25.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11944 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_25.png\" alt=\"\" width=\"138\" height=\"140\"><\/a><\/p>\n<h2 id=\"i-1\"><span class=\"ez-toc-section\" id=\"3_%E8%89%B2%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%AB%E3%81%AE%E9%81%A9%E7%94%A8\"><\/span>3 \u8272\u30b9\u30b1\u30fc\u30eb\u306e\u9069\u7528<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre class=\"lang:vbnet decode:true\">ws.FirstCell.SetValue(1) _\n  .CellBelow.SetValue(1) _\n  .CellBelow.SetValue(2) _\n  .CellBelow.SetValue(3) _\n  .CellBelow.SetValue(4)\n\nws.RangeUsed.AddConditionalFormat.ColorScale _\n  .LowestValue(XLColor.Red) _\n  .Midpoint(XLCFContentType.Percent, 50, XLColor.Yellow) _\n  .HighestValue(XLColor.Green)<\/pre>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_26.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11945 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_26.png\" alt=\"\" width=\"113\" height=\"141\"><\/a><\/p>\n<h2 id=\"i-2\"><span class=\"ez-toc-section\" id=\"%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%82%BB%E3%83%83%E3%83%88%E3%81%AE%E9%81%A9%E7%94%A8\"><\/span>\u30a2\u30a4\u30b3\u30f3\u30bb\u30c3\u30c8\u306e\u9069\u7528<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre class=\"lang:vbnet decode:true\">ws.FirstCell.SetValue(1) _\n  .CellBelow.SetValue(1) _\n  .CellBelow.SetValue(2) _\n  .CellBelow.SetValue(3) _\n  .CellBelow.SetValue(4)\n\nws.RangeUsed.AddConditionalFormat.IconSet(XLIconSetStyle.ThreeTrafficLights2) _\n  .AddValue(XLCFIconSetOperator.EqualOrGreaterThan, 0, XLCFContentType.Number) _\n  .AddValue(XLCFIconSetOperator.EqualOrGreaterThan, 2, XLCFContentType.Number) _\n  .AddValue(XLCFIconSetOperator.EqualOrGreaterThan, 3, XLCFContentType.Number)<\/pre>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_27.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11947 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_27.png\" alt=\"\" width=\"100\" height=\"137\"><\/a><\/p>\n<h2 id=\"i-3\"><span class=\"ez-toc-section\" id=\"%E3%83%87%E3%83%BC%E3%82%BF%E3%83%90%E3%83%BC%E3%81%AE%E9%81%A9%E7%94%A8\"><\/span>\u30c7\u30fc\u30bf\u30d0\u30fc\u306e\u9069\u7528<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre class=\"lang:vbnet decode:true\">ws.FirstCell.SetValue(1) _\n  .CellBelow.SetValue(1) _\n  .CellBelow.SetValue(2) _\n  .CellBelow.SetValue(3) _\n  .CellBelow.SetValue(4)\n\nws.RangeUsed.AddConditionalFormat.DataBar(XLColor.Red) _\n  .LowestValue _\n  .HighestValue<\/pre>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_28.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11946 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_28.png\" alt=\"\" width=\"102\" height=\"139\"><\/a><\/p>\n<h2 id=\"i-4\"><span class=\"ez-toc-section\" id=\"%E5%BC%8F%E3%81%AE%E4%BD%BF%E7%94%A8\"><\/span>\u5f0f\u306e\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30bb\u30eb\u306e\u5024\u3092\u6bd4\u8f03\u5bfe\u8c61\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:vbnet decode:true\">ws.FirstCell.SetValue(1) _\n  .CellBelow.SetValue(1) _\n  .CellBelow.SetValue(2) _\n  .CellBelow.SetValue(3) _\n  .CellBelow.SetValue(4)\n\nDim oUsedRange = ws.RangeUsed\n\nws.Cell(\"C1\").Value = 3\n\noUsedRange.AddConditionalFormat.WhenEqualOrGreaterThan(\"=$C$1\") _\n  .Fill.SetBackgroundColor(XLColor.Yellow)<\/pre>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_29.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11950 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ClosedXML\/ClosedXml_29.png\" alt=\"\" width=\"229\" height=\"141\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/elleneast.com\/?cat=90\">\u300c\u3010VB.NET\u3011ClosedXML \u306e\u4f7f\u3044\u65b9\u300d\u306e\u4e00\u89a7\u3092\u8868\u793a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[include-page id=\u201d11760\u2033] \u30bb\u30eb\u306e\u5024\u304c 2 \u4ee5\u4e0a 3 \u4ee5\u4e0b\u306a\u3089\u30bb\u30eb\u306e\u80cc\u666f\u8272\u3092\u8d64\u306b\u3059\u308b ws.FirstCell.SetValue(1) _ .CellBelow.SetValue(1) _ .Ce &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2656,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[90],"tags":[],"class_list":{"0":"post-11938","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-closedxml"},"_links":{"self":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/11938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11938"}],"version-history":[{"count":3,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/11938\/revisions"}],"predecessor-version":[{"id":11951,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/11938\/revisions\/11951"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/media\/2656"}],"wp:attachment":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}