{"id":66,"date":"2020-08-13T15:41:23","date_gmt":"2020-08-13T06:41:23","guid":{"rendered":"http:\/\/yukihyo.conohawing.com\/?p=66"},"modified":"2020-08-13T16:40:48","modified_gmt":"2020-08-13T07:40:48","slug":"04_determination-of-a-holiday","status":"publish","type":"post","link":"https:\/\/yukihyo.conohawing.com\/?p=66","title":{"rendered":"04_determination of a holiday"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">today&#8217;s theme is holiday judgement by excell macro.<br><br>I think holiday doesn\u2019t have cycle.<br>some enterprises has a special holiday.<br>it is anniversary of founding, and so on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After some thought,<br>I decided coding holidays judgement per day.<br><br>bellow is macro statement of holiday judgement.<br><br>\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc<br>Dim D_num As Date<br>Dim myData(9) As String<br>Dim i As Integer<br><br>myData(0) = &#8220;&#8221;<br>myData(1) = #12\/30\/2020#<br>myData(2) = #12\/31\/2020#<br>myData(3) = &#8220;&#8221;<br>myData(4) = &#8220;&#8221;<br>myData(5) = &#8220;&#8221;<br>myData(6) = &#8220;New Year&#8217;s Holiday&#8221;<br>myData(7) = &#8220;New Year&#8217;s Holiday&#8221;<br>myData(8) = &#8220;&#8221;<br>myData(9) = &#8220;&#8221;<br><br>For i = LBound(myData) To UBound(myData)<br><br>Dim F_num As Long<br>For F_num = 1 To 10<br><br>D_num = CDate(Cells(F_num, 1))<br><span style=\"color:#0ca516\" class=\"has-inline-color\">\u2019assume that<\/span> <span style=\"color:#0ca516\" class=\"has-inline-color\">there are day of 10 cells from left corner to downward direction <\/span><br><span style=\"color:#0ca516\" class=\"has-inline-color\">\u2019and format of these cells is day form without asterisk. <\/span><br><span style=\"color:#0ca516\" class=\"has-inline-color\">\u2019(not *3\/14\/2012, but 2012\/3\/14)<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If InStr(myData(i), D_num) &lt;> 0 Then<br>Cells(F_num, 1).Font.ColorIndex = 46<br><span class=\"tadv-color\" style=\"color:#0071a1\"><span style=\"color:#0ca516\" class=\"has-inline-color\">\u2019if the cell matched holiday change<\/span><\/span> <span class=\"tadv-color\" style=\"color:#0071a1\"><span style=\"color:#0ca516\" class=\"has-inline-color\">the character color.  <\/span><\/span><br>Cells(F_num, 2) = myData(i + 5)<br><span class=\"tadv-color\" style=\"color:#0071a1\"><span style=\"color:#0ca516\" class=\"has-inline-color\">\u2019and writing holiday name next to this.<\/span><\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Exit For<br>End If<br>Next F_num<br>Next i<br>\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc<br><br>i used one-dimensional matrix as two-dimensional<br>by IF sentence.<br><br>thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>today&#8217;s theme is holiday judgement by excell macro. I think holiday doesn\u2019t have cycle.some enterprises  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[9],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-excell-macro","tag-9"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"yukihyo\"\/>\n\t<meta name=\"google-site-verification\" content=\"MCveztGhT9ihDkzRGONJXYJd0dYPdPeH8TK4Rlo9xIg\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/yukihyo.conohawing.com\/?p=66\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"yukihyo1207 | Just another WordPress site\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"04_determination of a holiday | yukihyo1207\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/yukihyo.conohawing.com\/?p=66\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/yukihyo.conohawing.com\/wp-content\/uploads\/2025\/02\/f0224624_9362288.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/yukihyo.conohawing.com\/wp-content\/uploads\/2025\/02\/f0224624_9362288.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"610\" \/>\n\t\t<meta property=\"og:image:height\" content=\"402\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-08-13T06:41:23+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-08-13T07:40:48+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"04_determination of a holiday | yukihyo1207\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/yukihyo.conohawing.com\/wp-content\/uploads\/2025\/02\/f0224624_9362288.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#article\",\"name\":\"04_determination of a holiday | yukihyo1207\",\"headline\":\"04_determination of a holiday\",\"author\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d0b2a0c9346178c11724cf7eafae1b213938ce68c57760d99560015e8179301b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"yukihyo\"},\"datePublished\":\"2020-08-13T15:41:23+09:00\",\"dateModified\":\"2020-08-13T16:40:48+09:00\",\"inLanguage\":\"ja\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#webpage\"},\"articleSection\":\"excell macro, \\u30de\\u30af\\u30ed\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/yukihyo.conohawing.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?cat=10#listItem\",\"name\":\"excell macro\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?cat=10#listItem\",\"position\":2,\"name\":\"excell macro\",\"item\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?cat=10\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#listItem\",\"name\":\"04_determination of a holiday\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#listItem\",\"position\":3,\"name\":\"04_determination of a holiday\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?cat=10#listItem\",\"name\":\"excell macro\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/#person\",\"name\":\"yukihyo\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d0b2a0c9346178c11724cf7eafae1b213938ce68c57760d99560015e8179301b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"yukihyo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?author=1#author\",\"url\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?author=1\",\"name\":\"yukihyo\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d0b2a0c9346178c11724cf7eafae1b213938ce68c57760d99560015e8179301b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"yukihyo\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#webpage\",\"url\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66\",\"name\":\"04_determination of a holiday | yukihyo1207\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?p=66#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/?author=1#author\"},\"datePublished\":\"2020-08-13T15:41:23+09:00\",\"dateModified\":\"2020-08-13T16:40:48+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/#website\",\"url\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/\",\"name\":\"yukihyo1207\",\"description\":\"Just another WordPress site\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/yukihyo.conohawing.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"04_determination of a holiday | yukihyo1207","description":"","canonical_url":"https:\/\/yukihyo.conohawing.com\/?p=66","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"google-site-verification":"MCveztGhT9ihDkzRGONJXYJd0dYPdPeH8TK4Rlo9xIg","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yukihyo.conohawing.com\/?p=66#article","name":"04_determination of a holiday | yukihyo1207","headline":"04_determination of a holiday","author":{"@id":"https:\/\/yukihyo.conohawing.com\/?author=1#author"},"publisher":{"@id":"https:\/\/yukihyo.conohawing.com\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/yukihyo.conohawing.com\/?p=66#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/d0b2a0c9346178c11724cf7eafae1b213938ce68c57760d99560015e8179301b?s=96&d=mm&r=g","width":96,"height":96,"caption":"yukihyo"},"datePublished":"2020-08-13T15:41:23+09:00","dateModified":"2020-08-13T16:40:48+09:00","inLanguage":"ja","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/yukihyo.conohawing.com\/?p=66#webpage"},"isPartOf":{"@id":"https:\/\/yukihyo.conohawing.com\/?p=66#webpage"},"articleSection":"excell macro, \u30de\u30af\u30ed"},{"@type":"BreadcrumbList","@id":"https:\/\/yukihyo.conohawing.com\/?p=66#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/yukihyo.conohawing.com#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/yukihyo.conohawing.com","nextItem":{"@type":"ListItem","@id":"https:\/\/yukihyo.conohawing.com\/?cat=10#listItem","name":"excell macro"}},{"@type":"ListItem","@id":"https:\/\/yukihyo.conohawing.com\/?cat=10#listItem","position":2,"name":"excell macro","item":"https:\/\/yukihyo.conohawing.com\/?cat=10","nextItem":{"@type":"ListItem","@id":"https:\/\/yukihyo.conohawing.com\/?p=66#listItem","name":"04_determination of a holiday"},"previousItem":{"@type":"ListItem","@id":"https:\/\/yukihyo.conohawing.com#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/yukihyo.conohawing.com\/?p=66#listItem","position":3,"name":"04_determination of a holiday","previousItem":{"@type":"ListItem","@id":"https:\/\/yukihyo.conohawing.com\/?cat=10#listItem","name":"excell macro"}}]},{"@type":"Person","@id":"https:\/\/yukihyo.conohawing.com\/#person","name":"yukihyo","image":{"@type":"ImageObject","@id":"https:\/\/yukihyo.conohawing.com\/?p=66#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/d0b2a0c9346178c11724cf7eafae1b213938ce68c57760d99560015e8179301b?s=96&d=mm&r=g","width":96,"height":96,"caption":"yukihyo"}},{"@type":"Person","@id":"https:\/\/yukihyo.conohawing.com\/?author=1#author","url":"https:\/\/yukihyo.conohawing.com\/?author=1","name":"yukihyo","image":{"@type":"ImageObject","@id":"https:\/\/yukihyo.conohawing.com\/?p=66#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d0b2a0c9346178c11724cf7eafae1b213938ce68c57760d99560015e8179301b?s=96&d=mm&r=g","width":96,"height":96,"caption":"yukihyo"}},{"@type":"WebPage","@id":"https:\/\/yukihyo.conohawing.com\/?p=66#webpage","url":"https:\/\/yukihyo.conohawing.com\/?p=66","name":"04_determination of a holiday | yukihyo1207","inLanguage":"ja","isPartOf":{"@id":"https:\/\/yukihyo.conohawing.com\/#website"},"breadcrumb":{"@id":"https:\/\/yukihyo.conohawing.com\/?p=66#breadcrumblist"},"author":{"@id":"https:\/\/yukihyo.conohawing.com\/?author=1#author"},"creator":{"@id":"https:\/\/yukihyo.conohawing.com\/?author=1#author"},"datePublished":"2020-08-13T15:41:23+09:00","dateModified":"2020-08-13T16:40:48+09:00"},{"@type":"WebSite","@id":"https:\/\/yukihyo.conohawing.com\/#website","url":"https:\/\/yukihyo.conohawing.com\/","name":"yukihyo1207","description":"Just another WordPress site","inLanguage":"ja","publisher":{"@id":"https:\/\/yukihyo.conohawing.com\/#person"}}]},"og:locale":"ja_JP","og:site_name":"yukihyo1207 | Just another WordPress site","og:type":"article","og:title":"04_determination of a holiday | yukihyo1207","og:url":"https:\/\/yukihyo.conohawing.com\/?p=66","og:image":"https:\/\/yukihyo.conohawing.com\/wp-content\/uploads\/2025\/02\/f0224624_9362288.jpg","og:image:secure_url":"https:\/\/yukihyo.conohawing.com\/wp-content\/uploads\/2025\/02\/f0224624_9362288.jpg","og:image:width":610,"og:image:height":402,"article:published_time":"2020-08-13T06:41:23+00:00","article:modified_time":"2020-08-13T07:40:48+00:00","twitter:card":"summary","twitter:title":"04_determination of a holiday | yukihyo1207","twitter:image":"https:\/\/yukihyo.conohawing.com\/wp-content\/uploads\/2025\/02\/f0224624_9362288.jpg"},"aioseo_meta_data":{"post_id":"66","title":null,"description":"","keywords":"","keyphrases":null,"primary_term":null,"canonical_url":"","og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-04-24 02:53:49","updated":"2025-12-31 01:28:30","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/yukihyo.conohawing.com\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/yukihyo.conohawing.com\/?cat=10\" title=\"excell macro\">excell macro<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t04_determination of a holiday\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/yukihyo.conohawing.com"},{"label":"excell macro","link":"https:\/\/yukihyo.conohawing.com\/?cat=10"},{"label":"04_determination of a holiday","link":"https:\/\/yukihyo.conohawing.com\/?p=66"}],"_links":{"self":[{"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66"}],"version-history":[{"count":3,"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions\/69"}],"wp:attachment":[{"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yukihyo.conohawing.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}