Excel中使用vba设置单元格条件格式

Excel中使用vba设置单元格条件格式

回复
  • 明悦汐用户
    [[{"txt": "\u5c0f\u7f16\u81f4\u529b\u4e8e\u4e3a\u5927\u5bb6\u5949\u732e\u6700\u6709\u6548\u7684\u7ecf\u9a8c\uff0c\u8ba9\u5927\u5bb6\u80fd\u591f\u89e3\u51b3\u6389\u95ee\u9898\uff0c\u4f46\u662f\u5927\u5bb6\u4e5f\u90fd\u77e5\u9053\uff0c\u6bcf\u4e2a\u4eba\u9047\u5230\u7684\u60c5\u51b5\u90fd\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u5927\u5bb6\u5728\u770b\u5c0f\u7f16\u7ecf\u9a8c\u7684\u540c\u65f6\uff0c\u9664\u4e86\u8ddf\u968f\u64cd\u4f5c\uff0c\u4e5f\u9700\u8981\u81ea\u5df1\u7684\u601d\u8003\uff0c\u4e3e\u4e00\u53cd\u4e09\u7684\u89e3\u51b3\u95ee\u9898\uff0c\u8fd9\u6837\u624d\u4f1a\u53d8\u5f97\u66f4\u52a0\u6709\u5185\u6db5\uff0c\u6210\u4e3a\u548c\u5c0f\u7f16\u4e00\u6837\u7684\u7ecf\u9a8c\u8fbe\u4eba\u3002Excel\u4e2d\u4f7f\u7528vba\u8bbe\u7f6e\u5355\u5143\u683c\u6761\u4ef6\u683c\u5f0f\uff0c\u8fd9\u91cc\uff0c\u8ba9\u5c0f\u7f16\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0b\u3002"}, {"img": ["https://exp-picture.cdn.bcebos.com/5a5a00def4dca0395c8ef45958d96975f3c40d2a.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}], [{"txt": ["\u5de5\u5177/\u539f\u6599"]}, {"txt": "excel2016"}, {"txt": "\u6b64\u7ecf\u9a8c\u672c\u4eba\u539f\u521b\u9996\u53d1\uff0c\u672a\u7ecf\u672c\u4eba\u8bb8\u53ef\u8bf7\u52ff\u8f6c\u8f7d\u3002"}], [{"txt": ["\u65b9\u6cd5/\u6b65\u9aa4"]}, {"txt": "\u9996\u5148\u6211\u4eec\u6253\u5f00\u4e00\u4e2a\u5de5\u4f5c\u6837\u8868\u4f5c\u4e3a\u4f8b\u5b50\u3002"}, {"img": ["https://exp-picture.cdn.bcebos.com/5c2a1ad149299a886482d25067eeadbcbf2f7f2a.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u6761\u4ef6\u683c\u5f0f\u89e3\u91ca\u8d77\u6765\u5c31\u662fexcel\u4e2d\u5bf9\u5355\u5143\u683c\u4e2d\u7684\u5b57\u4f53\uff0c\u5b57\u4f53\u989c\u8272\u548c\u80cc\u666f\u989c\u8272\u7b49\u8fdb\u884c\u683c\u5f0f\u8bbe\u7f6e\uff0c\u6765\u8fbe\u5230\u7a81\u51fa\u663e\u793a\u7684\u6548\u679c\u3002\u6bd4\u5982\u56fe\u4f8b\u4e2d\u4ee5\u7ea2\u8272\u663e\u773c\u6807\u9519\uff0c\u84dd\u8272\u7a81\u51fa\u5bf9\u6bd4\u7b49\u7b49\u90fd\u5c5e\u4e8e\u6761\u4ef6\u683c\u5f0f\u8bbe\u7f6e\u3002"}, {"img": ["https://exp-picture.cdn.bcebos.com/e57a258602214f57fac7690e732064fb970b732a.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u800c\u6761\u4ef6\u683c\u5f0f\u5c5e\u4e8eFormatConditions\u5c5e\u6027\uff0cformat\u5373\u683c\u5f0f\u3002\u8fd9\u91cc\u6211\u4eec\u8bbe\u7f6e\u7684\u662f\u6240\u9009\u533a\u57df\uff0c\u4e5f\u5c31\u662fSelection\u5bf9\u8c61\uff0c\u7528\u9f20\u6807\u6846\u53d6\u7684\u8fd9\u4e00\u90e8\u5206\u4f5c\u4e3a\u5bf9\u8c61\u3002"}, {"img": ["https://exp-picture.cdn.bcebos.com/54a89daee8d7592a967edacd9f31dfb6336c672a.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u6211\u4eec\u4f7f\u7528alt+f11\u7ec4\u5408\u5feb\u6377\u952e\u8fdb\u5165vbe\u7f16\u8f91\u5668\uff0c\u63d2\u5165\u4e00\u4e2a\u65b0\u7684\u6a21\u5757\uff0c\u5e76\u5728\u6a21\u5757\u4e2d\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1aSub FormatConditions()\u00a0\u00a0\u00a0Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlLessEqual, Formula1:=\"10\"\u00a0\u00a0\u00a0Selection.FormatConditions(1).Font.ColorIndex = 3\u00a0\u00a0\u00a0End Sub"}, {"img": ["https://exp-picture.cdn.bcebos.com/2e223d85e036e291c6790955b2723d03baea5b2a.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u8fd9\u91cc\u7684\u6761\u4ef6\u683c\u5f0f\u8bbe\u7f6e\u53ef\u4ee5\u4f7f\u7528add\u65b9\u6cd5\u6765\u6dfb\u52a0\u6761\u4ef6\u7684\u9700\u6c42\uff0c\u5176\u4e2d\u5305\u62ec\u6761\u4ef6\u7684\u7c7b\u578b\uff0c\u6761\u4ef6\u7684\u8fd0\u7b97\u683c\u5f0f\uff0c\u4ee5\u53ca\u8fd0\u7b97\u540e\u7684\u503c\u7b49\u3002"}, {"img": ["https://exp-picture.cdn.bcebos.com/d695563104ebf6a7d29eb89effee1c324a184f2a.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u8fd9\u91cc\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u6307\u5b9a\u5bf9\u8c61\u7684\u65b9\u5f0f\uff0c\u6bd4\u5982font\u5bf9\u8c61\uff0c\u4e5f\u53ef\u4ee5\u8fdb\u884c\u4fee\u6539\u4f7f\u7528modify\u65b9\u6cd5\u3002\u8fd9\u91cc\u5927\u5bb6\u53ef\u4ee5\u591a\u8bd5\u9a8c\u51e0\u6b21\u6765\u638c\u63e1\u5bf9\u6761\u4ef6\u683c\u5f0f\u7684\u8bbe\u7f6e\u3002"}, {"img": ["https://exp-picture.cdn.bcebos.com/cca2552c56ee7b7f1d9f46c06ef4fcf5ef0d412a.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u5148\u5199\u5230\u8fd9\u91cc\u4e86\uff0c\u8c22\u8c22\u5927\u5bb6\u7684\u89c2\u770b\u3002\u795d\u5927\u5bb6\u751f\u6d3b\u6109\u5feb\u3002\u5c0f\u7f16\u8fd8\u6709\u8bb8\u591a\u5176\u4ed6\u7684\u7ecf\u9a8c\u53ef\u4ee5\u89c2\u770b\uff0c\u5982\u679c\u65e0\u6cd5\u89e3\u51b3\u95ee\u9898\u53ef\u4ee5\u8054\u7cfb\u5c0f\u7f16\u8fdb\u884c\u54a8\u8be2\u3002\u770b\u4e0d\u6e05\u695a\u56fe\u7247\u7684\u53ef\u4ee5\u70b9\u51fb\u653e\u5927\u518d\u770b\u54e6\u3002"}], [{"txt": ["\u6ce8\u610f\u4e8b\u9879"]}, {"txt": "\u4e2a\u4eba\u7ecf\u9a8c\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002"}]]
    2024-11-22
    1楼
    回复

参与评论

游客评论不支持回复他人评论内容,如需回复他人评论内容请