{"id":4156,"date":"2015-11-03T08:22:52","date_gmt":"2015-11-02T23:22:52","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=4156"},"modified":"2016-01-12T22:58:53","modified_gmt":"2016-01-12T13:58:53","slug":"enablecalculation","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/enablecalculation\/","title":{"rendered":"\u518d\u8a08\u7b97\uff08Calculation, EnableCalculation, Calculate\uff09"},"content":{"rendered":"<h2>\u30ef\u30fc\u30af\u30d6\u30c3\u30af\u3084\u30b7\u30fc\u30c8\u306e\u518d\u8a08\u7b97<\/h2>\n<div class=\"m30-l\">\n<p>\u901a\u5e38\u3001Excel \u3067\u306f\u3001\u81ea\u52d5\u7684\u306b<strong>\u518d\u8a08\u7b97<\/strong>\u304c\u884c\u308f\u308c\u308b\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u30bb\u30eb\u306b\u5024\u3092\u5165\u529b\u3057\u305f\u6642\u306b\u95a2\u9023\u3059\u308b\u6570\u5f0f\u3084\u95a2\u6570\u304c\u3042\u308b\u5834\u5408\u3001<strong>\u518d\u8a08\u7b97<\/strong>\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5927\u91cf\u306e\u8a08\u7b97\u5f0f\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u51e6\u7406\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\u969b\u3001<strong>\u518d\u8a08\u7b97<\/strong>\u306e\u8a2d\u5b9a\u3092\u300c\u624b\u52d5\u300d\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u30de\u30af\u30ed\u306e\u5b9f\u884c\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>Calculation \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p>\u30d6\u30c3\u30af\u5168\u4f53\u3092\u81ea\u52d5\u7684\u306b\u518d\u8a08\u7b97\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8a08\u7b97\u65b9\u6cd5\u306e\u30e2\u30fc\u30c9\u3092\u8868\u3059 <strong>XlCalculation \u5217\u6319\u578b<\/strong>\u306e\u5024\u3092\u4f7f\u7528\u3057\u3001\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Calculation<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Calculation<\/strong> = <em>const<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Application \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>const&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u8a08\u7b97\u30e2\u30fc\u30c9\u3092\u8868\u3059 <strong>XlCalculation \u5217\u6319\u578b<\/strong> \u306e\u5b9a\u6570\u307e\u305f\u306f\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffccc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"50\" bgcolor=\"#ffffccc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlCalculationAutomatic<\/td>\n<td width=\"50\" align = \"center\">-4105<\/td>\n<td width=\"400\">\u81ea\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlCalculationManual<\/td>\n<td width=\"50\" align = \"center\">-4135<\/td>\n<td width=\"400\">\u624b\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlCalculationSemiautomatic<\/td>\n<td width=\"50\" align = \"center\">2<\/td>\n<td width=\"400\">\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u4ee5\u5916\u81ea\u52d5<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>EnableCalculation \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p>\u6307\u5b9a\u3057\u305f\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3092\u81ea\u52d5\u7684\u306b\u518d\u8a08\u7b97\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09\u306e\u5024\u3092\u4f7f\u7528\u3057\u3001\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>EnableCalculation<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>EnableCalculation<\/strong> = <em>boolean<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>boolean&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>True<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u30b7\u30fc\u30c8\u306e\u518d\u8a08\u7b97\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<strong>False<\/strong> \u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u30b7\u30fc\u30c8\u306e\u518d\u8a08\u7b97\u3092\u5b9f\u884c\u3057\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution8\"><strong>EnableCalculation \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u306b\u3001<strong>False<\/strong> \u3092\u8a2d\u5b9a\u3057\u305f\u307e\u307e\u30d6\u30c3\u30af\u3092\u4fdd\u5b58\u3001\u7d42\u4e86\u3057\u3066\u3082\u3001\u6b21\u56de\u30d6\u30c3\u30af\u3092\u958b\u3044\u305f\u6642\u3001<strong>EnableCalculation \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u306f\u3001<strong>True<\/strong> \u306b\u8a2d\u5b9a\u3055\u308c\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n      \u203b Excel 2013 \u306e\u5834\u5408\u3001\u6700\u521d\u306e\uff11\u56de\u306f\u3001\u518d\u8a08\u7b97\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002\uff08\u4ed6\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u95a2\u3057\u3066\u306f\u8a66\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3069\u306e\u3088\u3046\u306a\u52d5\u4f5c\u3092\u884c\u3046\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u3002\uff09<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Calculate \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>Excel \u306e\u81ea\u52d5\u518d\u8a08\u7b97\u306e\u8a2d\u5b9a\u304c\u3001\u300c\u624b\u52d5\u300d\u306e\u5834\u5408\u306b\u3001\u518d\u8a08\u7b97\u3092\u884c\u3046\u306b\u306f\u3001<strong>Calculate \u30e1\u30bd\u30c3\u30c9<\/strong> \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u6307\u5b9a\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3088\u3063\u3066\u3001\u518d\u8a08\u7b97\u3092\u884c\u3046\u7bc4\u56f2\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Calculate<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Application \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3001<span class=\"red\"><strong>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3001<span class=\"red\"><strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong>Application \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u6307\u5b9a\u3001\u307e\u305f\u306f\u3001\u7701\u7565\u3057\u305f\u5834\u5408\u3001\u30d6\u30c3\u30af\u5168\u4f53\u3092\u518d\u8a08\u7b97\u3057\u307e\u3059\u3002<br \/>\n      <strong>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u6307\u5b9a\u3057\u305f\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3060\u3051\u3092\u518d\u8a08\u7b97\u3057\u307e\u3059\u3002<br \/>\n      <strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3060\u3051\u3092\u518d\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>\u518d\u8a08\u7b97\u306e\u8a2d\u5b9a \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Calculation \u30d7\u30ed\u30d1\u30c6\u30a3\u3001Calculate \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample01_Calculation()\r\n\r\n    \r\n    '\u30d6\u30c3\u30af\u306e\u518d\u8a08\u7b97\u3092\u300c\u624b\u52d5\u300d\u306b\u8a2d\u5b9a\r\n    Application.Calculation = xlCalculationManual\r\n    \r\n    \r\n    '\u30bb\u30eb\u306b\u6570\u5024\u3092\u5165\u529b\r\n    Dim i As Long\r\n    \r\n    For i = 2 To 10\r\n    \r\n        Cells(i, 2) = i * 10\r\n        \r\n        Cells(i, 5) = i * 10\r\n    \r\n    Next i\r\n    \r\n    \r\n    '\u300cB12\u300d\u30bb\u30eb\u306b\u3001SUM \u95a2\u6570\u3092\u5165\u529b\r\n    Range(\"A12\") = \"\u5408\u8a08\"\r\n    Range(\"B12\") = \"=SUM(B2:B10)\"\r\n    \r\n    '\u300cE12\u300d\u30bb\u30eb\u306b\u3001SUM \u95a2\u6570\u3092\u5165\u529b\r\n    Range(\"D12\") = \"\u5408\u8a08\"\r\n    Range(\"E12\") = \"=SUM(B2:B10)\"\r\n    \r\n    \r\n    '\u300cB10\u300d\u300cE10\u300d\u306e\u5024\u3092\u5909\u66f4\r\n    Range(\"B10\") = 1000\r\n    Range(\"E10\") = 1000\r\n    \r\n    \r\n    '\u300cB12\u300d\u30bb\u30eb\u3060\u3051\u518d\u8a08\u7b97\u3092\u5b9f\u884c\r\n    Range(\"B12\").Calculate\r\n\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/calculation01.jpg?ssl=1\" rel=\"lightbox[4156]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/calculation01.jpg?resize=469%2C372&#038;ssl=1\" alt=\"\u518d\u8a08\u7b97\u306e\u8a2d\u5b9a\u30fb\u5b9f\u884c\" width=\"469\" height=\"372\" class=\"alignnone size-full wp-image-4160\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/calculation01.jpg?w=469&amp;ssl=1 469w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/calculation01.jpg?resize=400%2C317&amp;ssl=1 400w\" sizes=\"(max-width: 469px) 100vw, 469px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30ef\u30fc\u30af\u30d6\u30c3\u30af\u3084\u30b7\u30fc\u30c8\u306e\u518d\u8a08\u7b97 \u901a\u5e38\u3001Excel \u3067\u306f\u3001\u81ea\u52d5\u7684\u306b\u518d\u8a08\u7b97\u304c\u884c\u308f\u308c\u308b\u8a2d &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4160,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[357],"tags":[301,641,639,640,270,63,311,38,360],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/10\/calculation01.jpg?fit=469%2C372&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-152","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4156"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=4156"}],"version-history":[{"count":5,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4156\/revisions"}],"predecessor-version":[{"id":4911,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4156\/revisions\/4911"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/4160"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=4156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=4156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=4156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}