{"id":136182,"date":"2024-04-28T12:28:11","date_gmt":"2024-04-28T04:28:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/136182.html"},"modified":"2024-04-28T12:28:13","modified_gmt":"2024-04-28T04:28:13","slug":"excel%e8%a1%a8%e6%a0%bc%e4%b8%80%e6%8b%96%e5%b0%b1%e5%88%b0%e6%9c%80%e5%90%8e%e4%b8%80%e5%88%97%e4%ba%86%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/136182.html","title":{"rendered":"excel\u8868\u683c\u4e00\u62d6\u5c31\u5230\u6700\u540e\u4e00\u5217\u4e86\u600e\u4e48\u529e"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24132913\/0f00224a-893b-4824-9c18-84b574161b8d.webp\" alt=\"excel\u8868\u683c\u4e00\u62d6\u5c31\u5230\u6700\u540e\u4e00\u5217\u4e86\u600e\u4e48\u529e\" \/><\/p>\n<p><p>\u5728\u4f7f\u7528Excel\u65f6\uff0c\u78b0\u5230\u8868\u683c\u62d6\u52a8\u65f6\u4e00\u4e0d\u5c0f\u5fc3\u5c31\u8fbe\u5230\u4e86\u6700\u540e\u4e00\u5217\u7684\u60c5\u51b5\uff0c\u867d\u7136\u770b\u4f3c\u662f\u4e00\u4e2a\u5c0f\u95ee\u9898\uff0c\u4f46\u5374\u5e38\u5e38\u8ba9\u4eba\u611f\u5230\u56f0\u6270\u3002\u5bf9\u6b64\uff0c\u89e3\u51b3\u65b9\u6cd5\u4e3b\u8981\u6709<strong>\u9650\u5236\u6eda\u52a8\u533a\u57df\u3001\u4f7f\u7528\u5feb\u6377\u952e\u63a7\u5236\u6eda\u52a8<\/strong>\u3001\u8c03\u6574\u9f20\u6807\u8bbe\u7f6e\u548c\u4f18\u5316Excel\u8868\u683c\u8bbe\u8ba1\u56db\u4e2a\u6838\u5fc3\u601d\u8def\u3002\u5176\u4e2d\uff0c<strong>\u9650\u5236\u6eda\u52a8\u533a\u57df<\/strong>\u7684\u65b9\u6cd5\u80fd\u6709\u6548\u907f\u514d\u65e0\u610f\u4e2d\u6eda\u52a8\u5230\u4e0d\u9700\u8981\u7684\u533a\u57df\uff0c\u4ece\u800c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u9650\u5236\u6eda\u52a8\u533a\u57df<\/h3>\n<\/p>\n<p><p>\u9650\u5236Excel\u6eda\u52a8\u533a\u57df\u662f\u901a\u8fc7\u8bbe\u7f6e\u5de5\u4f5c\u8868\u7684\u6eda\u52a8\u533a\u57df\u5c5e\u6027\u6765\u5b9e\u73b0\u7684\uff0c\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u5728\u4f7f\u7528\u6eda\u52a8\u6761\u6216\u62d6\u52a8\u9f20\u6807\u65f6\u65e0\u610f\u4e2d\u6eda\u52a8\u5230\u8868\u683c\u7684\u7a7a\u767d\u533a\u57df\u3002<\/p>\n<\/p>\n<ol>\n<li>\u9996\u5148\uff0c\u786e\u5b9a\u4f60\u5e0c\u671b\u80fd\u591f\u6eda\u52a8\u67e5\u770b\u7684\u533a\u57df\u8303\u56f4\uff0c\u6bd4\u5982A1:C100\u3002<\/li>\n<li>\u7136\u540e\uff0c\u70b9\u51fb\u201c\u5f00\u53d1\u5de5\u5177\u201d\u9009\u9879\u5361\u4e2d\u7684\u201cVisual Basic\u201d\u6309\u94ae\uff0c\u6253\u5f00VBA\u7f16\u8f91\u5668\u3002\u5982\u679c\u4f60\u7684Excel\u4e2d\u6ca1\u6709\u201c\u5f00\u53d1\u5de5\u5177\u201d\u9009\u9879\u5361\uff0c\u9700\u8981\u5148\u5728\u6587\u4ef6\u4e2d\u7684\u201c\u9009\u9879\u201d\u91cc\u5f00\u542f\u5b83\u3002<\/li>\n<li>\u5728VBA\u7f16\u8f91\u5668\u4e2d\uff0c\u53cc\u51fb\u5de6\u4fa7\u7684\u8be5\u8868\u683c\u540d\u79f0\uff0c\u5728\u6253\u5f00\u7684\u4ee3\u7801\u9875\u4e2d\u8f93\u5165\u4e0b\u9762\u7684\u4ee3\u7801\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-vba\">Private Sub Worksheet_Activate()<\/p>\n<p>    Me.ScrollArea = &quot;A1:C100&quot;<\/p>\n<p>End Sub<\/p>\n<p>Private Sub Worksheet_Deactivate()<\/p>\n<p>    Me.ScrollArea = &quot;&quot;<\/p>\n<p>End Sub<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li>\u5173\u95edVBA\u7f16\u8f91\u5668\uff0c\u8fd4\u56deExcel\u3002\u8fd9\u65f6\u5019\uff0c\u65e0\u8bba\u662f\u4f7f\u7528\u9f20\u6807\u62d6\u52a8\u8fd8\u662f\u6eda\u52a8\u6761\uff0c\u8868\u683c\u7684\u53ef\u89c6\u533a\u57df\u90fd\u5c06\u9650\u5236\u5728A1\u5230C100\u7684\u8303\u56f4\u5185\u3002<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5feb\u6377\u952e\u63a7\u5236\u6eda\u52a8<\/h3>\n<\/p>\n<p><p>\u8fc7\u5206\u4f9d\u8d56\u9f20\u6807\u6eda\u52a8\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e0d\u7ecf\u610f\u95f4\u6eda\u52a8\u5230\u5de5\u4f5c\u8868\u7684\u5c3d\u5934\uff0c\u4f7f\u7528\u5feb\u6377\u952e\u53ef\u4ee5\u66f4\u7cbe\u51c6\u5730\u63a7\u5236\u6eda\u52a8\u884c\u4e3a\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528\u201cCtrl + \u65b9\u5411\u952e\u201d\u53ef\u4ee5\u5feb\u901f\u8df3\u8f6c\u5230\u5f53\u524d\u533a\u57df\u7684\u8fb9\u7f18\u5355\u5143\u683c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5feb\u901f\u5b9a\u4f4d\u5230\u8868\u683c\u7684\u67d0\u4e00\u8fb9\u754c\u3002<\/li>\n<li>\u201cPage Up\u201d\u548c\u201cPage Down\u201d\u952e\u5219\u53ef\u7528\u4e8e\u5feb\u901f\u4e0a\u4e0b\u7ffb\u9875\uff0c\u8fd9\u5bf9\u4e8e\u957f\u8868\u683c\u7684\u5feb\u901f\u6d4f\u89c8\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u8c03\u6574\u9f20\u6807\u8bbe\u7f6e<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u9f20\u6807\u6eda\u8f6e\u654f\u611f\u5ea6\u8bbe\u7f6e\u8fc7\u9ad8\u4e5f\u53ef\u80fd\u662f\u5bfc\u81f4\u95ee\u9898\u7684\u539f\u56e0\u4e4b\u4e00\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u9f20\u6807\u8bbe\u7f6e\u6765\u89e3\u51b3\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6839\u636e\u4f60\u6240\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u627e\u5230\u63a7\u5236\u9762\u677f\u5185\u7684\u9f20\u6807\u8bbe\u7f6e\u9009\u9879\u3002<\/li>\n<li>\u5728\u9f20\u6807\u5c5e\u6027\u83dc\u5355\u4e2d\uff0c\u8c03\u6574\u201c\u6eda\u8f6e\u201d\u9009\u9879\u5361\u4e0b\u7684\u201c\u5782\u76f4\u6eda\u52a8\u201d\u8bbe\u7f6e\uff0c\u51cf\u5c11\u6bcf\u6b21\u6eda\u52a8\u6240\u8de8\u8d8a\u7684\u884c\u6570\u3002<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u4f18\u5316Excel\u8868\u683c\u8bbe\u8ba1<\/h3>\n<\/p>\n<p><p>\u4f18\u5316\u8868\u683c\u8bbe\u8ba1\uff0c\u907f\u514d\u5728\u5de5\u4f5c\u8868\u4e2d\u7559\u4e0b\u8fc7\u591a\u7684\u7a7a\u767d\u533a\u57df\uff0c\u53ef\u4ee5\u51cf\u5c11\u65e0\u610f\u4e2d\u6eda\u52a8\u5230\u7a7a\u767d\u533a\u57df\u7684\u6982\u7387\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5c3d\u91cf\u4f7f\u7528Excel\u5185\u7f6e\u7684\u8868\u683c\u529f\u80fd\uff0c\u901a\u8fc7\u201c\u63d2\u5165\u201d&gt;\u201c\u8868\u683c\u201d\uff0c\u5229\u7528\u8868\u683c\u81ea\u52a8\u6269\u5c55\u7684\u7279\u6027\uff0c\u4fdd\u6301\u6570\u636e\u7684\u7d27\u51d1\u6027\u3002<\/li>\n<li>\u5b9a\u671f\u6e05\u7406\u5de5\u4f5c\u8868\u4e2d\u7684\u7a7a\u767d\u884c\u6216\u5217\uff0c\u7279\u522b\u662f\u5728\u6570\u636e\u533a\u57df\u4e4b\u540e\u7684\u7a7a\u767d\u90e8\u5206\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c\u67e5\u627e\u548c\u9009\u62e9\u201d&gt;\u201c\u5b9a\u4f4d\u6761\u4ef6\u201d&gt;\u201c\u7a7a\u767d\u5355\u5143\u683c\u201d\u5feb\u901f\u9009\u4e2d\u7a7a\u767d\u533a\u57df\u5e76\u5220\u9664\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u907f\u514d\u5728\u4f7f\u7528Excel\u65f6\u56e0\u610f\u5916\u62d6\u52a8\u6216\u6eda\u52a8\u800c\u5230\u8fbe\u8868\u683c\u7684\u6700\u540e\u4e00\u5217\u3002\u6838\u5fc3\u5728\u4e8e\u9884\u9632\u548c\u4f18\u5316\uff0c\u4ece\u6e90\u5934\u51cf\u5c11\u95ee\u9898\u7684\u53d1\u751f\u51e0\u7387\uff0c\u5e76\u5229\u7528Excel\u7684\u9ad8\u7ea7\u529f\u80fd\u63d0\u5347\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u4e3a\u4ec0\u4e48\u6211\u5728\u62d6\u62fdExcel\u8868\u683c\u65f6\u4f1a\u4e00\u76f4\u5230\u6700\u540e\u4e00\u5217\uff1f<\/strong><br \/>\n\u5f53\u60a8\u62d6\u62fdExcel\u8868\u683c\u65f6\u51fa\u73b0\u8de8\u8d8a\u591a\u5217\u7684\u60c5\u51b5\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u6570\u636e\u683c\u5f0f\u7684\u8bbe\u7f6e\u95ee\u9898\u5bfc\u81f4\u7684\u3002Excel\u4f1a\u6839\u636e\u5355\u5143\u683c\u7684\u683c\u5f0f\u6765\u786e\u5b9a\u8981\u5728\u62d6\u62fd\u65f6\u586b\u5145\u7684\u5185\u5bb9\u3002\u5982\u679c\u60a8\u7684\u5355\u5143\u683c\u683c\u683c\u5f0f\u8bbe\u7f6e\u4e3a\u201c\u6587\u672c\u201d\uff0c\u5219Excel\u4f1a\u5c06\u5176\u89c6\u4e3a\u9700\u8981\u586b\u5145\u7684\u7c98\u8d34\u5185\u5bb9\uff0c\u800c\u4e0d\u662f\u6309\u7167\u9010\u6b65\u589e\u52a0\u7684\u6a21\u5f0f\u586b\u5145\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u89e3\u51b3\u5728Excel\u4e2d\u62d6\u62fd\u65f6\u4e00\u76f4\u8de8\u8d8a\u5230\u6700\u540e\u4e00\u5217\u7684\u95ee\u9898\uff1f<\/strong><br \/>\n\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\u66f4\u6539\u5355\u5143\u683c\u7684\u683c\u5f0f\u8bbe\u7f6e\u3002\u9996\u5148\uff0c\u9009\u62e9\u62d6\u62fd\u7684\u5355\u5143\u683c\u533a\u57df\uff0c\u7136\u540e\u70b9\u51fbExcel\u83dc\u5355\u680f\u4e0a\u7684\u201c\u683c\u5f0f\u201d\u9009\u9879\uff0c\u5728\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u5355\u5143\u683c\u683c\u5f0f\u201d\u3002\u5728\u6253\u5f00\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u201c\u5e38\u89c4\u201d\u5355\u5143\u683c\u683c\u5f0f\u5e76\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u3002\u8fd9\u6837\u5c31\u5c06\u5355\u5143\u683c\u7684\u683c\u5f0f\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7684\u201c\u5e38\u89c4\u201d\u683c\u5f0f\uff0c\u62d6\u62fd\u65f6\u53ea\u4f1a\u586b\u5145\u8fde\u7eed\u7684\u6570\u503c\uff0c\u800c\u4e0d\u4f1a\u8de8\u8d8a\u5230\u6700\u540e\u4e00\u5217\u3002<\/p>\n<p><strong>3. \u662f\u5426\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u63a7\u5236Excel\u62d6\u62fd\u586b\u5145\u7684\u8303\u56f4\uff1f<\/strong><br \/>\n\u662f\u7684\uff0cExcel\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u65b9\u6cd5\u6765\u63a7\u5236\u62d6\u62fd\u586b\u5145\u7684\u8303\u56f4\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u62d6\u62fd\u586b\u5145\u7684\u81ea\u5b9a\u4e49\u9009\u9879\u6765\u8bbe\u7f6e\u586b\u5145\u89c4\u5219\u3002\u5728\u62d6\u62fd\u5355\u5143\u683c\u53f3\u4e0b\u89d2\u7684\u5c0f\u9ed1\u70b9\u65f6\uff0c\u6309\u4f4fCtrl\u952e\u5e76\u62d6\u52a8\uff0cExcel\u4f1a\u6839\u636e\u6240\u9009\u7684\u89c4\u5219\u6765\u586b\u5145\u5355\u5143\u683c\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u6309\u4f4fCtrl\u952e\u5e76\u5411\u4e0b\u62d6\u52a8\uff0cExcel\u5c06\u4f7f\u7528\u6240\u9700\u7684\u89c4\u5219\u586b\u5145\u5355\u5143\u683c\uff0c\u800c\u4e0d\u662f\u4e00\u76f4\u62d6\u52a8\u5230\u6700\u540e\u4e00\u5217\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u7075\u6d3b\u5730\u63a7\u5236\u586b\u5145\u8303\u56f4\uff0c\u6839\u636e\u9700\u8981\u8fdb\u884c\u81ea\u5b9a\u4e49\u586b\u5145\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u4f7f\u7528Excel\u65f6\uff0c\u78b0\u5230\u8868\u683c\u62d6\u52a8\u65f6\u4e00\u4e0d\u5c0f\u5fc3\u5c31\u8fbe\u5230\u4e86\u6700\u540e\u4e00\u5217\u7684\u60c5\u51b5\uff0c\u867d\u7136\u770b\u4f3c\u662f\u4e00\u4e2a\u5c0f\u95ee\u9898\uff0c\u4f46\u5374\u5e38\u5e38\u8ba9\u4eba\u611f\u5230\u56f0\u6270\u3002 [&hellip;]","protected":false},"author":3,"featured_media":136188,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/136182"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=136182"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/136182\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/136188"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=136182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=136182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=136182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}