随笔分类 - vba
摘要:replace是Range对象的一个方法,用于单元格替换. Sub replaceTest() Application.ReplaceFormat.Interior.Color = vbGreen '指定lookat参数为Whole,从而避免将21等包含2的数字也替换掉' Range("b2:e4"
阅读全文
摘要:查找表格中的数据: Sub findNum() Dim i&, j&, d As Date For i = 1 To 10000 For j = 1 To 50 If Cells(i, j) = "老石" Then Cells(i, j).Interior.Color = vbRed Cells(i
阅读全文