{"id":4167,"date":"2023-05-09T21:07:00","date_gmt":"2023-05-09T18:07:00","guid":{"rendered":"https:\/\/global.tab-tv.com\/cn\/?p=4167"},"modified":"2023-05-10T00:20:52","modified_gmt":"2023-05-09T21:20:52","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8microsoft-excel%e4%b8%ad%e6%b7%bb%e5%8a%a0%e4%bb%8a%e5%a4%a9%e7%9a%84%e6%97%a5%e6%9c%9f","status":"publish","type":"post","link":"https:\/\/global.tab-tv.com\/cn\/4167","title":{"rendered":"\u5982\u4f55\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f"},"content":{"rendered":"\n<p>\u4f60\u662f\u4e00\u4e2a\u9700\u8981\u8ddf\u8e2a\u91cd\u8981\u65e5\u671f\u7684Excel\u7528\u6237\u5417\uff1f\u4f60\u662f\u5426\u7ecf\u5e38\u624b\u52a8\u8f93\u5165\u5f53\u524d\u65e5\u671f\uff0c\u540e\u6765\u624d\u610f\u8bc6\u5230\u5b83\u9700\u8981\u66f4\u65b0\uff1f\u4f60\u662f\u5426\u6b63\u5728\u5bfb\u627e\u4e00\u79cd\u66f4\u6709\u6548\u7684\u65b9\u6cd5\u6765\u5c06\u4eca\u5929\u7684\u65e5\u671f\u63d2\u5165\u4f60\u7684Excel\u8868\u683c\u4e2d\uff1f\u5982\u679c\u662f\u8fd9\u6837\uff0c\u4f60\u5f88\u5e78\u8fd0\u3002<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u51e0\u79cd\u65b9\u6cd5\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f\uff0c\u4ece\u7b80\u5355\u7684\u624b\u52a8\u8f93\u5165\u5230\u66f4\u9ad8\u7ea7\u7684VBA\u5b8f\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u9759\u6001\u6216\u52a8\u6001\u7684\u65e5\u671f\u503c\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u65e5\u671f\u662f\u5426\u4f1a\u88ab\u66f4\u65b0\u3002<\/p>\n\n\n\n<p>\u56e0\u6b64\uff0c\u8fd9\u91cc\u662f\u5982\u4f55\u5de5\u4f5c\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>\u5982\u4f55\u5728Excel\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u9759\u6001\u65e5\u671f<\/strong><\/h2>\n\n\n\n<p>\u4f60\u53ef\u80fd\u8ba4\u4e3a\u624b\u52a8\u6dfb\u52a0\u65e5\u671f\u66f4\u5bb9\u6613\u3002\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u9009\u62e9\u4f60\u8981\u8f93\u5165\u65e5\u671f\u7684\u5355\u5143\u683c\uff0c\u7136\u540e\u4ee5\u4f60\u559c\u6b22\u7684\u683c\u5f0f\u8f93\u5165\u4eca\u5929\u7684\u65e5\u671f\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u4ee5DD\/MM\/YYYY\u7684\u683c\u5f0f\u8f93\u5165\uff0c\u4f60\u53ef\u4ee5\u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165 &#8220;13\/04\/2023&#8243;\u3002<\/p>\n\n\n\n<p>\u7136\u800c\uff0c\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\u6dfb\u52a0\u4eca\u5929\u7684\u65e5\u671f\u751a\u81f3\u66f4\u5feb\u3002\u8981\u505a\u5230\u8fd9\u4e00\u70b9\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9009\u62e9\u4f60\u8981\u8f93\u5165\u65e5\u671f\u7684\u5355\u5143\u683c\u3002<\/li>\n\n\n\n<li>\u7136\u540e\u6309<strong>Ctrl + ;<\/strong>\uff08\u5206\u53f7\uff09\u3002<\/li>\n\n\n\n<li>\u8fd9\u5c06\u81ea\u52a8\u5728\u8be5\u5355\u5143\u683c\u4e2d\u8f93\u5165\u4eca\u5929\u7684\u65e5\u671f\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"729\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-1.webp\" alt=\"\" class=\"wp-image-6646\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-1.webp 816w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-1-300x268.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-1-768x686.webp 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8981\u6dfb\u52a0\u5f53\u524d\u65f6\u95f4\uff0c\u6309<strong>Ctrl + Shift + ;<\/strong>\uff08\u5206\u53f7\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"729\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-2.webp\" alt=\"\" class=\"wp-image-6645\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-2.webp 816w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-2-300x268.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-2-768x686.webp 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/figure>\n\n\n\n<p>\u6b64\u5916\uff0c\u4f60\u53ef\u4ee5\u5c06\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u540c\u65f6\u6dfb\u52a0\u5230\u540c\u4e00\u4e2a\u5355\u5143\u683c\u4e2d\u3002\u4e0b\u9762\u662f\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9009\u62e9\u9700\u8981\u7684\u5355\u5143\u683c\uff0c\u6309<strong>Ctrl + ;<\/strong>\uff08\u5206\u53f7\uff09\u3002<\/li>\n\n\n\n<li>\u4e4b\u540e\uff0c\u7559\u5728\u8fd9\u4e2a\u5355\u5143\u683c\u4e2d\uff0c\u6309<strong>\u7a7a\u683c\u952e<\/strong>\u3002<\/li>\n\n\n\n<li>\u6700\u540e\uff0c\u6309<strong>Ctrl + Shift + ;<\/strong>\uff08\u5206\u53f7\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"729\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-3.webp\" alt=\"\" class=\"wp-image-6644\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-3.webp 816w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-3-300x268.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-add-a-static-date-in-Excel-3-768x686.webp 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u4f60\u53ea\u662f\u5076\u5c14\u9700\u8981\u63d2\u5165\u65e5\u671f\uff0c\u5feb\u6377\u65b9\u5f0f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u4f46\u5982\u679c\u4f60\u9700\u8981\u7ecf\u5e38\u8fd9\u6837\u505a\uff0c\u4f60\u53ef\u80fd\u8981\u8003\u8651\u5176\u4ed6\u65b9\u6cd5\u4e4b\u4e00\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>\u5982\u4f55\u4f7f\u7528TODAY()\u51fd\u6570\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f<\/strong><\/h2>\n\n\n\n<p>TODAY()\u51fd\u6570\u662fExcel\u4e2d\u7684\u4e00\u4e2a\u5185\u7f6e\u51fd\u6570\uff0c\u7528\u4e8e\u8fd4\u56de\u5f53\u524d\u65e5\u671f\u3002\u5b83\u5728\u5904\u7406\u65e5\u671f\u65f6\u975e\u5e38\u65b9\u4fbf\uff0c\u56e0\u4e3a\u65e0\u8bba\u4f60\u4f55\u65f6\u6253\u5f00\u6587\u4ef6\uff0c\u5b83\u90fd\u4f1a\u8fd4\u56de\u5f53\u524d\u65e5\u671f\u3002\u8be5\u51fd\u6570\u7684\u8bed\u6cd5\u5f88\u7b80\u5355\uff1a=TODAY()\u3002\u4f60\u53ef\u4ee5\u5728\u4efb\u4f55\u9700\u8981\u663e\u793a\u5f53\u524d\u65e5\u671f\u7684\u5355\u5143\u683c\u4e2d\u4f7f\u7528\u8fd9\u4e2a\u51fd\u6570\u3002<\/p>\n\n\n\n<p>\u56e0\u6b64\uff0c\u8fd9\u91cc\u662f\u5982\u4f55\u4f7f\u7528\u5b83\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9009\u62e9\u4f60\u60f3\u663e\u793a\u4eca\u5929\u7684\u65e5\u671f\u7684\u5355\u5143\u683c\u3002<\/li>\n\n\n\n<li>\u7136\u540e\u8f93\u5165<strong>&#8220;=TODAY()&#8221;<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"729\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-the-TODAY-function-to-insert-todays-date-in-Excel-1.webp\" alt=\"\" class=\"wp-image-6643\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-the-TODAY-function-to-insert-todays-date-in-Excel-1.webp 816w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-the-TODAY-function-to-insert-todays-date-in-Excel-1-300x268.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-the-TODAY-function-to-insert-todays-date-in-Excel-1-768x686.webp 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u5c06\u5728\u5355\u5143\u683c\u4e2d\u663e\u793a\u4eca\u5929\u7684\u65e5\u671f\uff0c\u800c\u4e14\u65e5\u671f\u4f1a\u6bcf\u5929\u81ea\u52a8\u66f4\u65b0\u3002<\/p>\n\n\n\n<p>\u8fd8\u6709\u4e00\u4e2aNOW()\u51fd\u6570\u3002\u5b83\u53ef\u4ee5\u5c06\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u63d2\u5165\u5230Excel\u7535\u5b50\u8868\u683c\u4e2d\u3002\u8be5\u516c\u5f0f\u7684\u8bed\u6cd5\u5f88\u7b80\u5355\uff1a\u5728\u4f60\u60f3\u663e\u793a\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u7684\u5355\u5143\u683c\u4e2d\u8f93\u5165=NOW()\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"806\" height=\"719\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-the-TODAY-function-to-insert-todays-date-in-Excel-2.webp\" alt=\"\" class=\"wp-image-6642\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-the-TODAY-function-to-insert-todays-date-in-Excel-2.webp 806w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-the-TODAY-function-to-insert-todays-date-in-Excel-2-300x268.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-the-TODAY-function-to-insert-todays-date-in-Excel-2-768x685.webp 768w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u4e0eTODAY()\u51fd\u6570\u7684\u5de5\u4f5c\u539f\u7406\u7c7b\u4f3c\u3002\u5b83\u5728\u4f60\u6bcf\u6b21\u6253\u5f00Excel\u6587\u4ef6\u65f6\u81ea\u52a8\u66f4\u65b0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>\u5982\u4f55\u4f7f\u7528VBA\u5b8f\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f<\/strong><\/h2>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2aVBA\u5b8f\u6765\u81ea\u52a8\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f\u3002\u8981\u521b\u5efa\u4e00\u4e2a\u5b8f\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u8bf4\u660e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u70b9\u51fb &#8220;<strong>\u5f00\u53d1\u4eba\u5458 &#8220;<\/strong>\u6807\u7b7e\uff0c\u6253\u5f00<strong>Visual Basic\u7f16\u8f91\u5668<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"815\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-1.webp\" alt=\"\" class=\"wp-image-6641\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-1.webp 940w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-1-300x260.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-1-768x666.webp 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7136\u540e\u70b9\u51fb<strong>\u63d2\u5165<\/strong>\uff0c\u9009\u62e9<strong>\u6a21\u5757<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"698\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-2.webp\" alt=\"\" class=\"wp-image-6640\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-2.webp 977w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-2-300x214.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-2-768x549.webp 768w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-2-100x70.webp 100w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e4b\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/li>\n<\/ul>\n\n\n\n<p>Sub InsertTodayDate()<\/p>\n\n\n\n<p>ActiveCell.Value = Date<\/p>\n\n\n\n<p>\u7ed3\u675f\u5b50\u7a0b\u5e8f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"984\" height=\"706\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-3.webp\" alt=\"\" class=\"wp-image-6639\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-3.webp 984w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-3-300x215.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-3-768x551.webp 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8981\u4f7f\u7528\u8be5\u5b8f\uff0c\u8bf7\u5c06\u8be5\u6587\u4ef6\u4fdd\u5b58\u4e3a\u652f\u6301\u5b8f\u7684\u5de5\u4f5c\u7c3f\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"819\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-4.webp\" alt=\"\" class=\"wp-image-6638\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-4.webp 949w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-4-300x259.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-4-768x663.webp 768w\" sizes=\"auto, (max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u63a5\u4e0b\u6765\uff0c\u6253\u5f00\u8be5\u6587\u4ef6\uff0c\u518d\u6b21\u8fdb\u5165 <strong>&#8220;\u5f00\u53d1\u4eba\u5458 &#8220;<\/strong>\u9009\u9879\u5361\uff0c\u5e76\u70b9\u51fb &#8220;<strong>\u5b8f&#8221;<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"814\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-5.webp\" alt=\"\" class=\"wp-image-6637\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-5.webp 943w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-5-300x259.webp 300w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-5-768x663.webp 768w\" sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6700\u540e\uff0c\u9009\u62e9\u521b\u5efa\u7684\u5b8f\u5e76\u70b9\u51fb<strong>\u8fd0\u884c<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"391\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-6.webp\" alt=\"\" class=\"wp-image-6636\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-6.webp 400w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-use-VBA-Macro-to-insert-todays-date-in-Excel-6-300x293.webp 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u4e2a\u5b8f\u5c06\u5728\u6d3b\u52a8\u5355\u5143\u683c\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>\u5982\u4f55\u6539\u53d8Excel\u4e2d\u7684\u65e5\u671f\u683c\u5f0f<\/strong><\/h2>\n\n\n\n<p>\u6539\u53d8Excel\u4e2d\u7684\u65e5\u671f\u683c\u5f0f\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u4ee5\u9700\u8981\u7684\u683c\u5f0f\u663e\u793a\u65e5\u671f\u3002\u56e0\u6b64\uff0c\u8fd9\u91cc\u662f\u5982\u4f55\u505a\u5230\u8fd9\u4e00\u70b9\u7684\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9009\u62e9\u5305\u542b\u4f60\u8981\u683c\u5f0f\u5316\u7684\u65e5\u671f\u7684\u5355\u5143\u683c\u6216\u5355\u5143\u683c\u8303\u56f4\u3002<\/li>\n\n\n\n<li>\u5728\u9009\u5b9a\u7684\u5355\u5143\u683c\u4e0a\u70b9\u51fb\u53f3\u952e\uff0c\u4ece\u83dc\u5355\u4e2d\u9009\u62e9 &#8220;<strong>\u5355\u5143\u683c\u683c\u5f0f&#8221;<\/strong>\u3002<\/li>\n\n\n\n<li>\u4ece<strong>\u7c7b\u522b<\/strong>\u5217\u8868\u4e2d\u9009\u62e9<strong>\u65e5\u671f\u3002<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"512\" src=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-change-the-date-format-in-Excel-1.webp\" alt=\"\" class=\"wp-image-6634\" srcset=\"https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-change-the-date-format-in-Excel-1.webp 560w, https:\/\/global.tab-tv.com\/cn\/wp-content\/uploads\/sites\/8\/2023\/05\/How-to-change-the-date-format-in-Excel-1-300x274.webp 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4ece<strong>\u7c7b\u578b<\/strong>\u5217\u8868\u4e2d\u9009\u62e9\u4f60\u60f3\u8981\u7684\u65e5\u671f\u683c\u5f0f\u3002<\/li>\n\n\n\n<li>Excel\u63d0\u4f9b\u4e86\u51e0\u79cd\u9884\u5b9a\u4e49\u7684\u65e5\u671f\u683c\u5f0f\uff0c\u5982<strong>mm\/dd\/yyyy<\/strong>\u6216<strong>dd-mmm-yy<\/strong>\u3002\u4f46\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5728<strong>\u7c7b\u578b<\/strong>\u5b57\u6bb5\u4e2d\u8f93\u5165\u81ea\u5b9a\u4e49\u683c\u5f0f\u6765\u521b\u5efa\u4f60\u7684\u81ea\u5b9a\u4e49\u683c\u5f0f\u3002<\/li>\n\n\n\n<li>\u5355\u51fb &#8220;<strong>\u786e\u5b9a&#8221;<\/strong>\uff0c\u5c06\u65b0\u7684\u683c\u5f0f\u5e94\u7528\u4e8e\u9009\u5b9a\u7684\u5355\u5143\u683c\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e00\u65e6\u4f60\u6539\u53d8\u4e86\u65e5\u671f\u683c\u5f0f\uff0cExcel\u5c06\u4ee5\u4f60\u9009\u62e9\u7684\u65b0\u683c\u5f0f\u663e\u793a\u4f60\u7684\u65e5\u671f\u3002\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7684\u7535\u5b50\u8868\u683c\u66f4\u5bb9\u6613\u9605\u8bfb\u548c\u7406\u89e3\uff0c\u7279\u522b\u662f\u5f53\u4f60\u4e0e\u5176\u4ed6\u53ef\u80fd\u4f7f\u7528\u4e0d\u540c\u65e5\u671f\u683c\u5f0f\u7684\u4eba\u5206\u4eab\u8fd9\u4e9b\u8868\u683c\u65f6\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f60\u662f\u4e00\u4e2a\u9700\u8981\u8ddf\u8e2a\u91cd\u8981\u65e5\u671f\u7684Excel\u7528\u6237\u5417\uff1f\u4f60\u662f\u5426\u7ecf\u5e38\u624b\u52a8\u8f93\u5165\u5f53\u524d\u65e5\u671f\uff0c\u540e\u6765\u624d\u610f\u8bc6\u5230\u5b83\u9700\u8981\u66f4\u65b0\uff1f\u4f60\u662f\u5426\u6b63\u5728\u5bfb\u627e\u4e00\u79cd\u66f4\u6709\u6548\u7684\u65b9\u6cd5\u6765\u5c06\u4eca\u5929\u7684\u65e5\u671f\u63d2\u5165\u4f60\u7684Excel\u8868\u683c\u4e2d\uff1f\u5982\u679c\u662f\u8fd9\u6837\uff0c\u4f60\u5f88\u5e78\u8fd0\u3002 \u4f60\u53ef\u4ee5\u4f7f\u7528\u51e0\u79cd\u65b9\u6cd5\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f\uff0c\u4ece\u7b80\u5355\u7684\u624b\u52a8\u8f93\u5165\u5230\u66f4\u9ad8\u7ea7\u7684VBA\u5b8f\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u9759\u6001\u6216\u52a8\u6001\u7684\u65e5\u671f\u503c\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u65e5\u671f\u662f\u5426\u4f1a\u88ab\u66f4\u65b0\u3002 \u56e0\u6b64\uff0c\u8fd9\u91cc\u662f\u5982\u4f55\u5de5\u4f5c\u7684\u3002 \u5982\u4f55\u5728Excel\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u9759\u6001\u65e5\u671f \u4f60\u53ef\u80fd\u8ba4\u4e3a\u624b\u52a8\u6dfb\u52a0\u65e5\u671f\u66f4\u5bb9\u6613\u3002\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u9009\u62e9\u4f60\u8981\u8f93\u5165\u65e5\u671f\u7684\u5355\u5143\u683c\uff0c\u7136\u540e\u4ee5\u4f60\u559c\u6b22\u7684\u683c\u5f0f\u8f93\u5165\u4eca\u5929\u7684\u65e5\u671f\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u4ee5DD\/MM\/YYYY\u7684\u683c\u5f0f\u8f93\u5165\uff0c\u4f60\u53ef\u4ee5\u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165 &#8220;13\/04\/2023&#8243;\u3002 \u7136\u800c\uff0c\u4f7f\u7528\u5feb\u6377\u65b9\u5f0f\u6dfb\u52a0\u4eca\u5929\u7684\u65e5\u671f\u751a\u81f3\u66f4\u5feb\u3002\u8981\u505a\u5230\u8fd9\u4e00\u70b9\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a \u6b64\u5916\uff0c\u4f60\u53ef\u4ee5\u5c06\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u540c\u65f6\u6dfb\u52a0\u5230\u540c\u4e00\u4e2a\u5355\u5143\u683c\u4e2d\u3002\u4e0b\u9762\u662f\u65b9\u6cd5\uff1a \u5982\u679c\u4f60\u53ea\u662f\u5076\u5c14\u9700\u8981\u63d2\u5165\u65e5\u671f\uff0c\u5feb\u6377\u65b9\u5f0f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u4f46\u5982\u679c\u4f60\u9700\u8981\u7ecf\u5e38\u8fd9\u6837\u505a\uff0c\u4f60\u53ef\u80fd\u8981\u8003\u8651\u5176\u4ed6\u65b9\u6cd5\u4e4b\u4e00\u3002 \u5982\u4f55\u4f7f\u7528TODAY()\u51fd\u6570\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f TODAY()\u51fd\u6570\u662fExcel\u4e2d\u7684\u4e00\u4e2a\u5185\u7f6e\u51fd\u6570\uff0c\u7528\u4e8e\u8fd4\u56de\u5f53\u524d\u65e5\u671f\u3002\u5b83\u5728\u5904\u7406\u65e5\u671f\u65f6\u975e\u5e38\u65b9\u4fbf\uff0c\u56e0\u4e3a\u65e0\u8bba\u4f60\u4f55\u65f6\u6253\u5f00\u6587\u4ef6\uff0c\u5b83\u90fd\u4f1a\u8fd4\u56de\u5f53\u524d\u65e5\u671f\u3002\u8be5\u51fd\u6570\u7684\u8bed\u6cd5\u5f88\u7b80\u5355\uff1a=TODAY()\u3002\u4f60\u53ef\u4ee5\u5728\u4efb\u4f55\u9700\u8981\u663e\u793a\u5f53\u524d\u65e5\u671f\u7684\u5355\u5143\u683c\u4e2d\u4f7f\u7528\u8fd9\u4e2a\u51fd\u6570\u3002 \u56e0\u6b64\uff0c\u8fd9\u91cc\u662f\u5982\u4f55\u4f7f\u7528\u5b83\uff1a \u8fd9\u5c06\u5728\u5355\u5143\u683c\u4e2d\u663e\u793a\u4eca\u5929\u7684\u65e5\u671f\uff0c\u800c\u4e14\u65e5\u671f\u4f1a\u6bcf\u5929\u81ea\u52a8\u66f4\u65b0\u3002 \u8fd8\u6709\u4e00\u4e2aNOW()\u51fd\u6570\u3002\u5b83\u53ef\u4ee5\u5c06\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u63d2\u5165\u5230Excel\u7535\u5b50\u8868\u683c\u4e2d\u3002\u8be5\u516c\u5f0f\u7684\u8bed\u6cd5\u5f88\u7b80\u5355\uff1a\u5728\u4f60\u60f3\u663e\u793a\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u7684\u5355\u5143\u683c\u4e2d\u8f93\u5165=NOW()\u3002 \u8fd9\u4e0eTODAY()\u51fd\u6570\u7684\u5de5\u4f5c\u539f\u7406\u7c7b\u4f3c\u3002\u5b83\u5728\u4f60\u6bcf\u6b21\u6253\u5f00Excel\u6587\u4ef6\u65f6\u81ea\u52a8\u66f4\u65b0\u3002 \u5982\u4f55\u4f7f\u7528VBA\u5b8f\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f \u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2aVBA\u5b8f\u6765\u81ea\u52a8\u5728Excel\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f\u3002\u8981\u521b\u5efa\u4e00\u4e2a\u5b8f\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u8bf4\u660e\uff1a Sub InsertTodayDate() ActiveCell.Value = Date \u7ed3\u675f\u5b50\u7a0b\u5e8f \u8fd9\u4e2a\u5b8f\u5c06\u5728\u6d3b\u52a8\u5355\u5143\u683c\u4e2d\u63d2\u5165\u4eca\u5929\u7684\u65e5\u671f\u3002 \u5982\u4f55\u6539\u53d8Excel\u4e2d\u7684\u65e5\u671f\u683c\u5f0f \u6539\u53d8Excel\u4e2d\u7684\u65e5\u671f\u683c\u5f0f\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u4ee5\u9700\u8981\u7684\u683c\u5f0f\u663e\u793a\u65e5\u671f\u3002\u56e0\u6b64\uff0c\u8fd9\u91cc\u662f\u5982\u4f55\u505a\u5230\u8fd9\u4e00\u70b9\u7684\uff1a \u4e00\u65e6\u4f60\u6539\u53d8\u4e86\u65e5\u671f\u683c\u5f0f\uff0cExcel\u5c06\u4ee5\u4f60\u9009\u62e9\u7684\u65b0\u683c\u5f0f\u663e\u793a\u4f60\u7684\u65e5\u671f\u3002\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7684\u7535\u5b50\u8868\u683c\u66f4\u5bb9\u6613\u9605\u8bfb\u548c\u7406\u89e3\uff0c\u7279\u522b\u662f\u5f53\u4f60\u4e0e\u5176\u4ed6\u53ef\u80fd\u4f7f\u7528\u4e0d\u540c\u65e5\u671f\u683c\u5f0f\u7684\u4eba\u5206\u4eab\u8fd9\u4e9b\u8868\u683c\u65f6\u3002<\/p>\n","protected":false},"author":1,"featured_media":6647,"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":[2],"tags":[30],"class_list":{"0":"post-4167","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-2","8":"tag-microsoft-excel"},"_links":{"self":[{"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/posts\/4167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/comments?post=4167"}],"version-history":[{"count":3,"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/posts\/4167\/revisions"}],"predecessor-version":[{"id":6648,"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/posts\/4167\/revisions\/6648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/media\/6647"}],"wp:attachment":[{"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/media?parent=4167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/categories?post=4167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global.tab-tv.com\/cn\/wp-json\/wp\/v2\/tags?post=4167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}