{"id":301,"date":"2024-12-23T02:33:36","date_gmt":"2024-12-22T17:33:36","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2024\/12\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%815%e5%88%86%e3%81%a7%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%87%e3%83%bc%e3%82%bf\/"},"modified":"2024-12-23T02:33:36","modified_gmt":"2024-12-22T17:33:36","slug":"excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%815%e5%88%86%e3%81%a7%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%87%e3%83%bc%e3%82%bf","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2024\/12\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%815%e5%88%86%e3%81%a7%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%87%e3%83%bc%e3%82%bf\/","title":{"rendered":"Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\uff015\u5206\u3067\u5b9f\u88c5\u3059\u308b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u30de\u30af\u30ed &#8211; \u696d\u52d9\u52b9\u7387\u5316\u306e\u6c7a\u5b9a\u7248"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u30de\u30af\u30ed\u306e\u5b9f\u88c5<\/h2>\n<p>\u4ee5\u4e0b\u306f\u3001Excel\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u3082\u3063\u3068\u697d\u3092\u3057\u305f\u3044\u3001\u696d\u52d9\u3092\u52b9\u7387\u5316\u3057\u305f\u3044\u4eba\u304c\u3059\u3050\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3067\u3059\uff1a<\/p>\n<p>&#8220;`vba<br \/>\nSub \u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0()<br \/>\n    Dim ws As Worksheet<br \/>\n    Set ws = ThisWorkbook.Sheets(&#8220;\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8&#8221;)<\/p>\n<p>    Application.OnTime Now + TimeValue(&#8220;00:00:05&#8221;), &#8220;\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0&#8221;<\/p>\n<p>    ws.Range(&#8220;A1&#8221;).Value = Now<br \/>\n    ws.Range(&#8220;B1&#8221;).Value = Application.WorksheetFunction.RandBetween(1, 100)<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306eExcel \u30de\u30af\u30ed\u306f\u30015\u79d2\u3054\u3068\u306bA1\u30bb\u30eb\u306b\u73fe\u5728\u6642\u523b\u3001B1\u30bb\u30eb\u306b\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5024\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>1. \u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u306e\u91cd\u8981\u6027<\/h3>\n<p>\u30d3\u30b8\u30cd\u30b9\u306e\u4e16\u754c\u3067\u306f\u3001\u6700\u65b0\u306e\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u8fc5\u901f\u306a\u610f\u601d\u6c7a\u5b9a\u3092\u884c\u3046\u3053\u3068\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002Excel \u30de\u30af\u30ed\u3092\u6d3b\u7528\u3057\u305f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u306f\u3001\u3053\u306e\u8981\u6c42\u306b\u5fdc\u3048\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002\u5e38\u306b\u6700\u65b0\u306e\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3067\u3001\u7d4c\u55b6\u5224\u65ad\u306e\u8cea\u3092\u5411\u4e0a\u3055\u305b\u3001\u7af6\u4e89\u529b\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u682a\u4fa1\u3084\u70ba\u66ff\u30ec\u30fc\u30c8\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3001\u8ca9\u58f2\u30c7\u30fc\u30bf\u306e\u8ffd\u8de1\u3001\u30bb\u30f3\u30b5\u30fc\u304b\u3089\u306e\u30c7\u30fc\u30bf\u53ce\u96c6\u306a\u3069\u3001\u69d8\u3005\u306a\u5834\u9762\u3067\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u624b\u52d5\u66f4\u65b0\u306e\u624b\u9593\u3092\u7701\u304d\u3001\u4eba\u7684\u30a8\u30e9\u30fc\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u30de\u30af\u30ed\u306e\u69cb\u9020\u3068\u6a5f\u80fd<\/h3>\n<p>\u4e0a\u8a18\u306eExcel \u30de\u30af\u30ed\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u304c\u3089\u52b9\u679c\u7684\u306a\u69cb\u9020\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u4e3b\u8981\u306a\u6a5f\u80fd\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<p>1. \u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306e\u6307\u5b9a\uff1a\u7279\u5b9a\u306e\u30b7\u30fc\u30c8\u3092\u5bfe\u8c61\u306b\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<br \/>\n2. \u30bf\u30a4\u30de\u30fc\u8a2d\u5b9a\uff1aApplication.OnTime\u3092\u4f7f\u7528\u3057\u3066\u3001\u5b9a\u671f\u7684\u306a\u5b9f\u884c\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n3. \u30c7\u30fc\u30bf\u66f4\u65b0\uff1a\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u306b\u6700\u65b0\u306e\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u4f59\u5730\u304c\u5927\u304d\u3044\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u5916\u90e8API\u306b\u5909\u66f4\u3057\u305f\u308a\u3001\u66f4\u65b0\u9593\u9694\u3092\u8abf\u6574\u3057\u305f\u308a\u3001\u3088\u308a\u8907\u96d1\u306a\u8a08\u7b97\u3092\u7d44\u307f\u8fbc\u3093\u3060\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>3. \u5b9f\u88c5\u6642\u306e\u6ce8\u610f\u70b9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n<p>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u30de\u30af\u30ed\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306f\u3001\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<p>1. \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\uff1a\u983b\u7e41\u306a\u66f4\u65b0\u306fExcel\u306e\u52d5\u4f5c\u3092\u9045\u304f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u66f4\u65b0\u9593\u9694\u3068\u30c7\u30fc\u30bf\u91cf\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>2. \u30a8\u30e9\u30fc\u51e6\u7406\uff1a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e\u554f\u984c\u3084\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u5909\u66f4\u306a\u3069\u3001\u4e88\u671f\u305b\u306c\u30a8\u30e9\u30fc\u306b\u5bfe\u51e6\u3059\u308b\u30b3\u30fc\u30c9\u3092\u542b\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>3. \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8003\u616e\uff1a\u5916\u90e8\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u9069\u5207\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3092\u8b1b\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>4. \u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff1a\u66f4\u65b0\u306e\u958b\u59cb\/\u505c\u6b62\u30dc\u30bf\u30f3\u3084\u3001\u6700\u7d42\u66f4\u65b0\u6642\u523b\u306e\u8868\u793a\u306a\u3069\u3001\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u306a\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u3092\u4f7f\u3063\u305f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u306f\u3001\u30d3\u30b8\u30cd\u30b9\u30d7\u30ed\u30bb\u30b9\u3092\u5927\u5e45\u306b\u6539\u5584\u3059\u308b\u53ef\u80fd\u6027\u3092\u79d8\u3081\u3066\u3044\u307e\u3059\u3002\u9069\u5207\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u610f\u601d\u6c7a\u5b9a\u306e\u8fc5\u901f\u5316\u3001\u696d\u52d9\u52b9\u7387\u306e\u5411\u4e0a\u3001\u305d\u3057\u3066\u7af6\u4e89\u529b\u306e\u5f37\u5316\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u4e0a\u7d1a\u8005\u306e\u65b9\u3005\u306f\u3001\u3053\u306e\u57fa\u672c\u7684\u306a\u30de\u30af\u30ed\u3092\u30d9\u30fc\u30b9\u306b\u3001\u3088\u308a\u9ad8\u5ea6\u3067\u8907\u96d1\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u30c7\u30fc\u30bf\u99c6\u52d5\u578b\u306e\u610f\u601d\u6c7a\u5b9a\u3092\u652f\u63f4\u3059\u308b\u3001\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u30de\u30af\u30ed\u306e\u5b9f\u88c5 \u4ee5\u4e0b\u306f\u3001Excel\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u3082\u3063\u3068\u697d\u3092\u3057\u305f\u3044\u3001\u696d\u52d9\u3092\u52b9\u7387\u5316\u3057\u305f\u3044\u4eba\u304c\u3059\u3050\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3067\u3059\uff1a #8220;`vba Sub \u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7<\/p>\n","protected":false},"author":2,"featured_media":300,"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-301","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\/301","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=301"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/300"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}