{"id":3115,"date":"2015-08-15T11:44:43","date_gmt":"2015-08-15T02:44:43","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3115"},"modified":"2015-08-26T00:16:44","modified_gmt":"2015-08-25T15:16:44","slug":"cellborderaround","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/cellborderaround\/","title":{"rendered":"\u5916\u67a0\u7f6b\u7dda\u306e\u8a2d\u5b9a\uff08BorderAround \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>\u5916\u67a0\u7f6b\u7dda\u306e\u8a2d\u5b9a<\/h2>\n<div class=\"m30-l\">\n<p>\u7f6b\u7dda\u306e\u8a2d\u5b9a\u306b\u306f\u3001<strong>Borders \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001\u7bc4\u56f2\u5185\u306e\u3059\u3079\u3066\u306e\u7f6b\u7dda\u306b\u5bfe\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u30b3\u30fc\u30c9\u91cf\u304c\u591a\u304f\u306a\u3063\u3066\u3057\u307e\u3057\u307e\u3059\u3002<br \/>\n    \u9078\u629e\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306e\u5916\u67a0\u7f6b\u7dda\u306e\u307f\u3092\u5f15\u304f\u5834\u5408\u306f\u3001<strong>BorderAround \u30e1\u30bd\u30c3\u30c9<\/strong>\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<\/p>\n<br \/>\n<h3>BorderAround \u30e1\u30bd\u30c3\u30c9<\/h3>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>BorderAround<\/strong> [ ( <em>LineStyle<\/em>, <em>Weight<\/em>, <em>ColorIndex<\/em>, <em>Color<\/em>, <em>ThemeColor<\/em> ) ]<\/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>LineStyle&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u7f6b\u7dda\u306e\u7a2e\u985e\u3092\u8868\u3059\u5b9a\u6570\uff08XlLineStyle \u5217\u6319\u578b\uff09\u307e\u305f\u306f\u3001\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"320\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlContinuous<\/td>\n<td width=\"80\" align = \"center\">1<\/td>\n<td width=\"320\" >\u5b9f\u7dda<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlDashDot<\/td>\n<td width=\"80\" align = \"center\">4<\/td>\n<td width=\"320\" >\u4e00\u70b9\u9396\u7dda<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlDashDotDot<\/td>\n<td width=\"80\" align = \"center\">5<\/td>\n<td width=\"320\" >\u30cb\u70b9\u9396\u7dda<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlSlantDashDot<\/td>\n<td width=\"80\" align = \"center\">13<\/td>\n<td width=\"320\" >\u659c\u7834\u7dda<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlDash<\/td>\n<td width=\"80\" align = \"center\">-4115<\/td>\n<td width=\"320\" >\u7834\u7dda<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlDot<\/td>\n<td width=\"80\" align = \"center\">-4118<\/td>\n<td width=\"320\" >\u70b9\u7dda<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlDouble<\/td>\n<td width=\"80\" align = \"center\">-4119<\/td>\n<td width=\"320\" >2 \u672c\u7dda<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlLineStyleNone<\/td>\n<td width=\"80\" align = \"center\">-4142<\/td>\n<td width=\"320\" >\u7dda\u306a\u3057<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>Weight&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u7f6b\u7dda\u306e\u592a\u3055\u3092\u8868\u3059\u5b9a\u6570\uff08XlBorderWeight \u5217\u6319\uff09\u307e\u305f\u306f\u3001\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"320\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlMedium<\/td>\n<td width=\"80\" align = \"center\">-4138<\/td>\n<td width=\"320\" >\u666e\u901a<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlHairline<\/td>\n<td width=\"80\" align = \"center\">1<\/td>\n<td width=\"320\" >\u7d30\u7dda (\u6700\u3082\u7d30\u3044\u7f6b\u7dda)<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlThin<\/td>\n<td width=\"80\" align = \"center\">2<\/td>\n<td width=\"320\" >\u6975\u7d30<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlThick<\/td>\n<td width=\"80\" align = \"center\">4<\/td>\n<td width=\"320\" >\u592a\u7dda (\u6700\u3082\u592a\u3044\u7f6b\u7dda)<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>ColorIndex&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30ab\u30e9\u30fc\u30d1\u30ec\u30c3\u30c8\u306e\u8272\u3092\u8868\u3059 <strong>1 \uff5e 56<\/strong> \u306e\u30d1\u30ec\u30c3\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\t\u3000\u3000\u21d2 <a href=\"https:\/\/excelwork.info\/excel\/colorindexcolors\/\">\u8272\u306e\u8a2d\u5b9a\uff1aColorIndex \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbColors \u30d7\u30ed\u30d1\u30c6\u30a3<\/a><\/li>\n<li>Color&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u8272\u3092\u8868\u3059 <strong>RGB \u5024<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\t\u3000\u3000\u21d2 <a href=\"https:\/\/excelwork.info\/excel\/colorrgb\/\">\u8272\u306e\u8a2d\u5b9a\uff1aColor \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbRGB \u95a2\u6570<\/a><\/li>\n<li>ThemeColor&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30c6\u30fc\u30de\u30ab\u30e9\u30fc\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<br \/>\n\t\u3000\u3000\u21d2 <a href=\"https:\/\/excelwork.info\/excel\/themecolorshade\/\">\u8272\u306e\u8a2d\u5b9a\uff1aThemeColor \u30d7\u30ed\u30d1\u30c6\u30a3\u30fbTintAndShade \u30d7\u30ed\u30d1\u30c6\u30a3<\/a><\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>BorderAround \u30e1\u30bd\u30c3\u30c9 \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=\"BorderAround \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_BorderAround()\r\n\r\n\r\n    '\u3059\u3067\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u7f6b\u7dda\u306e\u5916\u67a0\u306e\u307f\u5909\u66f4\r\n    Range(\"B2:F8\").BorderAround Weight:=xlThick, LineStyle:=xlDouble, Color:=RGB(0, 0, 255)\r\n    \r\n    \r\n    '\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u306e\u5916\u67a0\u7f6b\u7dda\r\n    Range(\"B15:D20\").BorderAround 1, 4, 18\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\/08\/borderaround01.jpg?ssl=1\" rel=\"lightbox[3115]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/borderaround01.jpg?resize=400%2C384&#038;ssl=1\" alt=\"BorderAround \u30e1\u30bd\u30c3\u30c9\u3000\u4f8b01\" width=\"400\" height=\"384\" class=\"alignnone size-medium wp-image-3118\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/borderaround01.jpg?resize=400%2C384&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/borderaround01.jpg?w=538&amp;ssl=1 538w\" 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\/08\/borderaround02a.jpg?ssl=1\" rel=\"lightbox[3115]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/borderaround02a.jpg?resize=400%2C387&#038;ssl=1\" alt=\"BorderAround \u30e1\u30bd\u30c3\u30c9\u3000\u4f8b02\" width=\"400\" height=\"387\" class=\"alignnone size-medium wp-image-3121\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/borderaround02a.jpg?resize=400%2C387&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/borderaround02a.jpg?w=540&amp;ssl=1 540w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u5916\u67a0\u7f6b\u7dda\u306e\u8a2d\u5b9a \u7f6b\u7dda\u306e\u8a2d\u5b9a\u306b\u306f\u3001Borders \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001\u7bc4\u56f2\u5185 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[509,270,63,38,269,510],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/borderaround01-400x3841.jpg?fit=400%2C384&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-Of","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3115"}],"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=3115"}],"version-history":[{"count":7,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3115\/revisions"}],"predecessor-version":[{"id":3334,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3115\/revisions\/3334"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3125"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}