{"id":313,"date":"2024-12-25T06:33:35","date_gmt":"2024-12-24T21:33:35","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2024\/12\/excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%92%e5%8a%87%e7%9a%84\/"},"modified":"2024-12-25T06:33:35","modified_gmt":"2024-12-24T21:33:35","slug":"excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%92%e5%8a%87%e7%9a%84","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2024\/12\/excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%92%e5%8a%87%e7%9a%84\/","title":{"rendered":"Excel\u30de\u30b9\u30bf\u30fc\u3078\u306e\u9053\uff1a\u4e0a\u7d1a\u8005\u5fc5\u898b\uff01\u696d\u52d9\u52b9\u7387\u3092\u5287\u7684\u306b\u4e0a\u3052\u308b5\u3064\u306e\u9ad8\u5ea6\u30c6\u30af\u30cb\u30c3\u30af\u3068VBA\u30de\u30af\u30ed\u6d3b\u7528\u6cd5"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u4f8b<\/h2>\n<p>Sub \u8907\u6570\u30b7\u30fc\u30c8\u4e00\u62ec\u51e6\u7406()<br \/>\n    Dim ws As Worksheet<br \/>\n    For Each ws In ThisWorkbook.Worksheets<br \/>\n        ws.Cells.Clear<br \/>\n        ws.Range(&#8220;A1&#8221;).Value = &#8220;\u81ea\u52d5\u751f\u6210\u3055\u308c\u305f\u30b7\u30fc\u30c8&#8221;<br \/>\n        ws.Range(&#8220;A2&#8221;).Value = Now()<br \/>\n    Next ws<br \/>\n    MsgBox &#8220;\u5168\u30b7\u30fc\u30c8\u306e\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002&#8221;<br \/>\nEnd Sub<\/p>\n<h3>1. \u8907\u96d1\u306a\u6761\u4ef6\u4ed8\u304d\u8a08\u7b97\u306e\u52b9\u7387\u5316<\/h3>\n<p>Excel\u4e0a\u7d1a\u8005\u304c\u62bc\u3055\u3048\u308b\u3079\u304d\u8907\u96d1\u306a\u8a08\u7b97\u51e6\u7406\u306e\u52b9\u7387\u7684\u306a\u5b9f\u88c5\u65b9\u6cd5\u306e\u4e00\u3064\u306f\u3001\u6761\u4ef6\u4ed8\u304d\u8a08\u7b97\u306e\u6700\u9069\u5316\u3067\u3059\u3002\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u969b\u3001IF\u95a2\u6570\u306e\u5165\u308c\u5b50\u3084\u8907\u6570\u306e\u6761\u4ef6\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u8a08\u7b97\u5f0f\u306f\u3001\u51e6\u7406\u901f\u5ea6\u306e\u4f4e\u4e0b\u3092\u62db\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30c6\u30af\u30cb\u30c3\u30af\u304c\u6709\u52b9\u3067\u3059\uff1a<\/p>\n<p>1. SWITCH\u95a2\u6570\u306e\u6d3b\u7528\uff1a\u8907\u6570\u306e\u6761\u4ef6\u5206\u5c90\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<br \/>\n2. IFS\u95a2\u6570\u306e\u5229\u7528\uff1a\u8907\u6570\u306eIF\u6587\u3092\u4e00\u3064\u306e\u95a2\u6570\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n3. XLOOKUP\u95a2\u6570\u306e\u5fdc\u7528\uff1a\u6761\u4ef6\u306b\u5fdc\u3058\u305f\u5024\u306e\u691c\u7d22\u3068\u53d6\u5f97\u3092\u9ad8\u901f\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u95a2\u6570\u3092\u9069\u5207\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u6761\u4ef6\u4ed8\u304d\u8a08\u7b97\u3092\u30b7\u30f3\u30d7\u30eb\u304b\u3064\u9ad8\u901f\u306b\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001Excel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u3089\u306e\u8a08\u7b97\u3092\u3055\u3089\u306b\u81ea\u52d5\u5316\u3057\u3001\u51e6\u7406\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u5927\u91cf\u30c7\u30fc\u30bf\u306e\u9ad8\u901f\u51e6\u7406\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n<p>\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6271\u3046\u969b\u3001\u901a\u5e38\u306e\u95a2\u6570\u3084\u6570\u5f0f\u3067\u306f\u51e6\u7406\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4e0a\u7d1a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u9ad8\u901f\u51e6\u7406\u30c6\u30af\u30cb\u30c3\u30af\u306b\u306f\u4ee5\u4e0b\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<p>1. \u914d\u5217\u6570\u5f0f\u306e\u6d3b\u7528\uff1a\u8907\u6570\u306e\u30bb\u30eb\u306b\u5bfe\u3057\u3066\u4e00\u5ea6\u306b\u8a08\u7b97\u3092\u884c\u3048\u307e\u3059\u3002<br \/>\n2. Power Query\uff08\u30af\u30a8\u30ea\uff09\u306e\u5229\u7528\uff1a\u30c7\u30fc\u30bf\u306e\u53d6\u308a\u8fbc\u307f\u3068\u5909\u63db\u3092\u52b9\u7387\u5316\u3067\u304d\u307e\u3059\u3002<br \/>\n3. \u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u6700\u9069\u5316\uff1a\u5927\u91cf\u30c7\u30fc\u30bf\u306e\u96c6\u8a08\u3068\u5206\u6790\u3092\u9ad8\u901f\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u99c6\u4f7f\u3059\u308b\u3053\u3068\u3067\u3001\u6570\u767e\u4e07\u884c\u306e\u30c7\u30fc\u30bf\u3067\u3082\u8fc5\u901f\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u7279\u306b\u3001Excel \u30de\u30af\u30ed\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u5b9a\u578b\u7684\u306a\u5927\u91cf\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3057\u3001\u4f5c\u696d\u6642\u9593\u3092\u5927\u5e45\u306b\u524a\u6e1b\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. VBA\u30de\u30af\u30ed\u306b\u3088\u308b\u8907\u96d1\u306a\u51e6\u7406\u306e\u81ea\u52d5\u5316<\/h3>\n<p>Excel\u4e0a\u7d1a\u8005\u306b\u3068\u3063\u3066\u3001VBA\uff08Visual Basic for Applications\uff09\u30de\u30af\u30ed\u306f\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u8907\u96d1\u306a\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u4f5c\u696d\u52b9\u7387\u3092\u98db\u8e8d\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001VBA\u30de\u30af\u30ed\u3092\u6d3b\u7528\u3057\u305f\u52b9\u7387\u5316\u306e\u4f8b\u3067\u3059\uff1a<\/p>\n<p>1. \u30ab\u30b9\u30bf\u30e0\u95a2\u6570\u306e\u4f5c\u6210\uff1a\u65e2\u5b58\u306e\u95a2\u6570\u3067\u306f\u5b9f\u73fe\u3067\u304d\u306a\u3044\u8907\u96d1\u306a\u8a08\u7b97\u3092\u884c\u3048\u307e\u3059\u3002<br \/>\n2. \u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u9593\u306e\u30c7\u30fc\u30bf\u8ee2\u9001\uff1a\u8907\u6570\u306e\u30b7\u30fc\u30c8\u9593\u3067\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u7684\u306b\u79fb\u52d5\u30fb\u30b3\u30d4\u30fc\u3067\u304d\u307e\u3059\u3002<br \/>\n3. \u5916\u90e8\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u306e\u9023\u643a\uff1a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084WebAPI\u304b\u3089\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u3089\u306e\u8907\u96d1\u306a\u51e6\u7406\u3092\u7c21\u5358\u306b\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u5192\u982d\u3067\u793a\u3057\u305f\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u30ef\u30fc\u30af\u30d6\u30c3\u30af\u5185\u306e\u5168\u30b7\u30fc\u30c8\u3092\u4e00\u62ec\u3067\u51e6\u7406\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30de\u30af\u30ed\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u624b\u52d5\u3067\u306f\u6642\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3092\u77ac\u6642\u306b\u5b8c\u4e86\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u7d1a\u8005\u5411\u3051\u306e\u3053\u308c\u3089\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7fd2\u5f97\u3057\u3001\u9069\u5207\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001Excel\u306e\u771f\u306e\u529b\u3092\u5f15\u304d\u51fa\u3057\u3001\u696d\u52d9\u52b9\u7387\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Excel \u30de\u30af\u30ed\u3092\u99c6\u4f7f\u3057\u3066\u3001\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3057\u3001\u8907\u96d1\u306a\u5206\u6790\u3092\u7c21\u7565\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5275\u9020\u7684\u3067\u4fa1\u5024\u306e\u9ad8\u3044\u696d\u52d9\u306b\u6642\u9593\u3092\u5272\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u4f8b Sub \u8907\u6570\u30b7\u30fc\u30c8\u4e00\u62ec\u51e6\u7406() Dim ws As Worksheet For Each ws In ThisWorkbook.Worksheets ws.Cell<\/p>\n","protected":false},"author":2,"featured_media":312,"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":[5],"tags":[],"class_list":["post-313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced"],"_links":{"self":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/312"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}