当前位置:网站首页>Excel comparator
Excel comparator
2022-07-04 05:37:00 【wpyok168】
Private Sub CheckDate_Click()
Dim i As Integer, r As Integer, num As Integer
Dim T1, T2 As Date
Dim lie As Integer
lie = 15 ' Column number 15 namely O Column
num = 0 ' Count the due quantity of the next calibration date
r = Range("o65536").End(xlUp).Row ' Statistics o How many cells have data in the column
T2 = Now() - 30 ' The current date is forward 30 God
'T1 = VBA.DateSerial(2022, 6, 26)' Date conversion
'T1 = Range("A1").Value' Get cell value
' Cycle cell data
For i = 1 To r
T1 = Cells(i, lie)
If (IsEmpty(T1)) Then
Cells(i, lie).Interior.Pattern = xlNone ' Clear background color
ElseIf (T1 < T2) Then
'MsgBox (" The calibration date of the instrument has expired ")
Cells(i, lie).Interior.Color = 255 ' Fill in red
num = num + 1
Else
Cells(i, lie).Interior.Pattern = xlNone ' Clear background color
End If
Next
If (num > 0) Then
Dim result
result = MsgBox(" All in all " + Str(num) + " Devices expire , Need to arrange correction !", vbExclamation)
End If
End Sub
边栏推荐
- 【雕爷学编程】Arduino动手做(105)---压电陶瓷振动模块
- 如何使用postman实现简单的接口关联【增删改查】
- 19.Frambuffer应用编程
- Electronic components mall and data manual download website summary
- IP时代来临,电竞酒店如何借好游戏的“东风”?
- Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
- PostgreSQL has officially surpassed mysql. Is this guy too strong!
- Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
- BUU-Reverse-easyre
- Flutter ‘/usr/lib/libswiftCore. dylib‘ (no such file)
猜你喜欢
云原生架构实战案例及优化解决方案
(4) Canal multi instance use
Signification des lettres du module optique et abréviation des paramètres Daquan
小程序毕业设计---美食、菜谱小程序
Simulated small root pile
2022g2 power station boiler stoker special operation certificate examination question bank and answers
Google Chrome browser will support the function of selecting text translation
Simulink and Arduino serial port communication
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
Principle and practice of common defects in RSA encryption application
随机推荐
VB. Net GIF (making and disassembling - optimizing code, class library - 5)
总线的基本概念
VB.net 简单的处理图片,黑白(类库——7)
VB.net 调用FFmpeg简单处理视频(类库——6)
Flink1.13 basic SQL syntax (II) join operation
Letter meaning and parameter abbreviation of optical module Daquan
Introduction to AMBA
光模塊字母含義及參數簡稱大全
Principle and practice of common defects in RSA encryption application
KMP匹配字符串
Notepad++--显示相关的配置
[matlab] matlab simulation of modulation system - power spectrum and coherent demodulation of AM modulated signal
2022 t elevator repair operation certificate examination question bank and simulation examination
[matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (class I part response waveform)
tutle时钟改进版
Descriptive analysis of data distribution characteristics (data exploration)
[matlab] matlab simulation modulation system FM system
Yyds dry goods inventory TCP & UDP
19. Framebuffer application programming
VB.net GIF(制作、拆解——优化代码,类库——5)