Sub FillNewToYellow()
Dim dic
Dim oldArr(), updatedArr() On Error Resume Next
If Worksheets("old") Is Nothing Then
MsgBox "Missing old sheet"
ElseIf Worksheets("updated") Is Nothing Then
MsgBox "Missing updated sheet"
Else
Set dic = CreateObject("Scripting.Dictionary")
ActiveWorkbook.Sheets("old").Activate
oldArr = Range("B1:B" & ActiveSheet.UsedRange.Rows.Count) For i = 1 To UBound(oldArr)
dic(oldArr(i, 1)) = ""
Next ActiveWorkbook.Sheets("updated").Activate
updatedArr = Range("B1:B" & ActiveSheet.UsedRange.Rows.Count) For i = 1 To UBound(updatedArr)
If dic.exists(updatedArr(i, 1)) = False Then
Rows(i & ":" & i).Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535 'Yellow
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End If
Next
End If
End Sub

最新文章

  1. SQL Server游标
  2. [转]SIFT特征提取分析
  3. POJ2186 Popular Cows 强连通分量tarjan
  4. SOA,ESB 与 SCA
  5. move 表索引失效
  6. Ray Tracing
  7. 新随笔ps泡泡制作
  8. 怎么用DreamWare新建立一个静态网站的站点
  9. C语言程序设计第五次作业——循环结构(1)
  10. angular脚手架搭建
  11. [NOIP2017普及组]棋盘
  12. day52 js--- bom dom
  13. c++之__attribute__((unused))
  14. CEF C++环境搭建
  15. js 动态绑定事件 on click 完美解决绑定不成功
  16. Scalable Object Detection using Deep Neural Networks译文
  17. Codeforces Round #196 (Div. 2) A. Puzzles 水题
  18. SpringCloud初体验:二、Config 统一配置管理中心
  19. 深入理解Java虚拟机---类加载机制(简略版)
  20. android之Activity.startManagingCursor方法详解

热门文章

  1. IEEE1588精密网络同步协议(PTP)
  2. 解决sql脚本文件太大无法打开的问题
  3. iOS播放视频
  4. HUD2102(基础bfs)
  5. 备份Ubuntu系统
  6. Day3-Python基础3--默认参数和参数组
  7. LTE-V2X车联网无线通信技术发展
  8. PostgreSQL recovery.conf恢复配置
  9. Celery-4.1 用户指南:Testing with Celery (用 Celery测试)
  10. Windows下.svn文件夹的最简易删除方法(附linux)