简体   繁体   English

Excel isblank 但通过 vba 自动化

[英]Excel isblank but automated through vba

I've been wondering if there's a way to automate isblank eg,through a wide selection of rows and columns if there's data in A1 and A2 and A3 is empty then fill A3 with eg."missing".我一直想知道是否有一种方法可以自动执行 isblank,例如,如果 A1 和 A2 中有数据并且 A3 中有数据,则通过广泛选择行和列,然后用例如“缺失”填充 A3。 Thanks in advance提前致谢

I tried using if(A1<>,"T","F") but that would be pain to apply on a big selection, expecting it to automatically look for missing data in eg.我尝试使用 if(A1<>,"T","F") 但应用于大量选择会很痛苦,期望它自动查找例如丢失的数据。 A3,B3,C3...... And check whether there's data in same row in eg A1, A2 and fill the empty with specific data A3,B3,C3...... 并检查A1,A2等中是否有同一行的数据,并用具体的数据填空

Rather than placing "Missing" in the empty cells shade them RED with Conditional Formatting.而不是在空单元格中放置“缺失”,而是使用条件格式将它们遮蔽为红色。 One Rule can cover a large area.一个规则可以覆盖很大的区域。 条件格式规则

条件格式结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM