Home > Software engineering > Small white master genuflect is begged help, always can't selected conditions...
Small white master genuflect is begged help, always can't selected conditions...
Time:10-01
There is a table, record the equipment operation log, to select equipment failure and return to normal time, But after a failure, there will be a specific prompt, will appear again after this prompt or empty lines, it very difficult to make screening, Because the VBA to beginners, copy copy the east side to the west and a piece of code to run, but always't pick condition records, and modify genuflect is begged, thank you!!!!!
In fact, I want three operations First, it is within the specified date, choose the F in the column 'Synchronization c... 'character record, save to sheet1, this character indicate that equipment is not normal, A 'Synchronization c... 'after that, may appear empty data or repeat again' Synchronization c... 'and don't have to ignore it, because when the equipment is not normal, The second step is to select the equipment is not normal, return to normal, also is saved to the sheet1, at just under the abnormal record The third step is to the screening of all provinces,
Human hands... Very time consuming, the master can help me to solve, thank you ~
Existing code is as follows:
Sub copy the specified date ()
Dim iStr As String, iDate As the Date,, EndRow2 EndRow1 As Long As Long
IStr=Application. InputBox (" please enter the date ", "date input", "2015-01-14", Type:=2)
If iStr="False" Then Exit Sub
IDate=DateValue (iStr)
A65536 EndRow1=Range (" "). The End (xlUp). Row
For I=2 To EndRow1
If the Range (" C "& amp; I). The Value=https://bbs.csdn.net/topics/iDate Then
If the Range (" F "& amp; I). The Value Like Synchron "* *" Then
EndRow2=Sheets (" Sheet1 "). The Range (" A65536 "). The End (xlUp). Row
If Not Range (" F "& amp; I). The Value Like "* Synchronization c... * "And Range (" F" & amp; I) & lt;> "" Then 'original blank is not empty, there is a space of