{"id":460,"date":"2025-01-18T02:33:34","date_gmt":"2025-01-17T17:33:34","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/01\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%817%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e3%83%86%e3%82%af%e3%83%8b%e3%83%83%e3%82%af%e3%81%a7%e3%83%af\/"},"modified":"2025-01-18T02:33:34","modified_gmt":"2025-01-17T17:33:34","slug":"excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%817%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e3%83%86%e3%82%af%e3%83%8b%e3%83%83%e3%82%af%e3%81%a7%e3%83%af","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/01\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%817%e3%81%a4%e3%81%ae%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%82%af%e3%83%ad%e3%83%86%e3%82%af%e3%83%8b%e3%83%83%e3%82%af%e3%81%a7%e3%83%af\/","title":{"rendered":"Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\uff017\u3064\u306e\u9ad8\u5ea6\u306a\u30de\u30af\u30ed\u30c6\u30af\u30cb\u30c3\u30af\u3067\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5287\u7684\u306b\u52b9\u7387\u5316"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u306b\u3088\u308b\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u81ea\u52d5\u5316<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u9078\u629e\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u6570\u5024\u3092\u5408\u8a08\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u77ac\u6642\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub SumSelectedCells()<br \/>\n    Dim rng As Range<br \/>\n    Dim total As Double<\/p>\n<p>    Set rng = Selection<br \/>\n    total = WorksheetFunction.Sum(rng)<\/p>\n<p>    Sheets.Add.Name = &#8220;SumResult&#8221;<br \/>\n    Sheets(&#8220;SumResult&#8221;).Range(&#8220;A1&#8221;).Value = &#8220;\u5408\u8a08\u7d50\u679c&#8221;<br \/>\n    Sheets(&#8220;SumResult&#8221;).Range(&#8220;A2&#8221;).Value = total<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<h3>1. \u30de\u30af\u30ed\u3092\u6d3b\u7528\u3057\u305f\u53cd\u5fa9\u4f5c\u696d\u306e\u81ea\u52d5\u5316<\/h3>\n<p>Excel \u30de\u30af\u30ed\u306f\u3001\u53cd\u5fa9\u7684\u306a\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u4e0a\u7d1a\u8005\u306f\u3001Visual Basic for Applications (VBA) \u3092\u4f7f\u7528\u3057\u3066\u8907\u96d1\u306a\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3057\u3001\u6642\u9593\u306e\u304b\u304b\u308b\u30bf\u30b9\u30af\u3092\u6570\u79d2\u3067\u5b8c\u4e86\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u8907\u6570\u306e\u30b7\u30fc\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u306b\u307e\u3068\u3081\u308b\u3068\u3044\u3063\u305f\u4f5c\u696d\u3092\u4e00\u62ec\u3067\u884c\u3046\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4eba\u70ba\u7684\u30df\u30b9\u3092\u6e1b\u3089\u3057\u3001\u4f5c\u696d\u52b9\u7387\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30de\u30af\u30ed\u306f\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u53ef\u80fd\u306a\u305f\u3081\u3001\u4f01\u696d\u7279\u6709\u306e\u30cb\u30fc\u30ba\u306b\u5408\u308f\u305b\u3066\u67d4\u8edf\u306b\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u30c7\u30fc\u30bf\u5206\u6790\u3068\u53ef\u8996\u5316\u306e\u81ea\u52d5\u5316<\/h3>\n<p>\u4e0a\u7d1a\u8005\u5411\u3051\u306eExcel \u30de\u30af\u30ed\u306f\u3001\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u5206\u6790\u3068\u53ef\u8996\u5316\u30d7\u30ed\u30bb\u30b9\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u5927\u91cf\u306e\u751f\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u307f\u3001\u7d71\u8a08\u5206\u6790\u3092\u884c\u3044\u3001\u7d50\u679c\u3092\u30b0\u30e9\u30d5\u3084\u56f3\u8868\u3067\u8868\u793a\u3059\u308b\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5b9a\u671f\u7684\u306a\u30ec\u30dd\u30fc\u30c8\u4f5c\u6210\u3084\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u5206\u6790\u30bf\u30b9\u30af\u3092\u7c21\u7d20\u5316\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u3066PivotTable\u3084PivotChart\u3092\u52d5\u7684\u306b\u4f5c\u6210\u3057\u3001\u30c7\u30fc\u30bf\u306e\u5909\u66f4\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>3. \u5916\u90e8\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u306e\u9023\u643a<\/h3>\n<p>\u9ad8\u5ea6\u306aExcel \u30de\u30af\u30ed\u306f\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u9023\u643a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001Excel\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u5185\u3067\u51e6\u7406\u3059\u308b\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u66f4\u65b0\u3084\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u7d71\u5408\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u3066Excel\u304b\u3089\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u305f\u308a\u3001\u4ed6\u306eMicrosoft Office\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u9023\u643a\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001Excel\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u69cb\u7bc9\u3057\u3001\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u5168\u4f53\u3092\u52b9\u7387\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u7d1a\u8005\u5411\u3051\u306eExcel \u30de\u30af\u30ed\u306f\u3001\u5358\u306a\u308b\u4f5c\u696d\u306e\u81ea\u52d5\u5316\u3060\u3051\u3067\u306a\u304f\u3001\u30d3\u30b8\u30cd\u30b9\u30d7\u30ed\u30bb\u30b9\u5168\u4f53\u3092\u6700\u9069\u5316\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002\u30de\u30af\u30ed\u306e\u6d3b\u7528\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u901f\u5ea6\u3068\u7cbe\u5ea6\u304c\u5411\u4e0a\u3057\u3001\u610f\u601d\u6c7a\u5b9a\u306e\u30b9\u30d4\u30fc\u30c9\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u8907\u96d1\u306a\u30de\u30af\u30ed\u306e\u4f5c\u6210\u306b\u306f\u4e00\u5b9a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30ad\u30eb\u304c\u5fc5\u8981\u3068\u306a\u308b\u305f\u3081\u3001\u7d99\u7d9a\u7684\u306a\u5b66\u7fd2\u3068\u5b9f\u8df5\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u306b\u3088\u308b\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u81ea\u52d5\u5316 \u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u9078\u629e\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u6570\u5024\u3092\u5408\u8a08\u3057\u3001\u7d50\u679c\u3092\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u77ac\u6642\u306b\u884c\u3048\u307e\u3059\u3002 #8220;`vba Su<\/p>\n","protected":false},"author":2,"featured_media":459,"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-460","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\/460","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=460"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/460\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/459"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}