{"published":"2024-08-24 08:09:43","blog_url":"https://hiko-blog.hatenadiary.com/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiko-blog.hatenadiary.com%2Fentry%2F2024%2F08%2F24%2F080943\" title=\"WORKDAY\u95a2\u6570\u3000\u3068\u3000DateSerial\u95a2\u6570\u3000\u5229\u7528\u30b5\u30f3\u30d7\u30eb - Hiko.Blog  Excel VBA\u6d3b\u7528\u8853\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_name":"hiko-blog","image_url":null,"height":"190","author_url":"https://blog.hatena.ne.jp/hiko-blog/","url":"https://hiko-blog.hatenadiary.com/entry/2024/08/24/080943","provider_url":"https://hatena.blog","blog_title":"Hiko.Blog  Excel VBA\u6d3b\u7528\u8853","type":"rich","categories":["VBA"],"version":"1.0","description":"Sub \u65e5\u4ed8\u8a08\u7b978\u65e5\u524d() \u2019C\u5217\u306e\u65e5\u4ed8\u3092YYYYMMDD\u5f62\u5f0f\u304b\u3089DateSerial\u95a2\u6570\u3092\u4f7f\u3063\u3066\u65e5\u4ed8\u578b\u306b\u5909\u63db Dim ws As Worksheet Dim lastRow As Long Dim i As Long Dim dateStr As String Dim dateValue As Date Dim workdayDate As Date ' \u5bfe\u8c61\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3092\u8a2d\u5b9a Set ws = ThisWorkbook.Sheets(\"Sheet2\") ' \u6700\u7d42\u884c\u3092\u53d6\u5f97 lastRow = ws.Cells(ws.Rows.Count, \"C\").End(xlUp).Row ' C\u5217\u306e\u5024\u2026","title":"WORKDAY\u95a2\u6570\u3000\u3068\u3000DateSerial\u95a2\u6570\u3000\u5229\u7528\u30b5\u30f3\u30d7\u30eb"}