HI, Here is the required macro to search a field and if value found copy the whole row into another...
I found a solution like this :Records in between two specific dates easily can be filtered using drop-down lists ....
I found a solution as follows: Watch the video to see how it's done and download example file : https://youtu.be/SZduAoOtiS0
I have sorted the above problem. Code is given below... [code] Sub seperate() Call CleanSheets MsgBox "1 of 10 Cleaning...
Hi, Here is the VBA code to Split the Workbook into different Files by Each Sheet in the file and...
Hi, You can loop through the Sheet using Workbook Sheets Collection. See the Updated Code below: [code] Sub sbDeleteRows() 'Array...
Hi, We can follo several methods to fill the unique values from the worksheet to ListBox. Here is my preferred...
How To Find Data Between Two Dates In Excel Vba?
I found a solution like this :
Records in between two specific dates easily can be filtered using drop-down lists . Drop-down lists were filled with unique values as ascending order using Ado connection. Thus, it is easier to choose between the dates on the worksheet.
The filtered data can be copied to other sheet if it wished.
lngStart = VBA.CDate(Sheets("Page1").ComboBox1) 'assume this is the start date
lngEnd = VBA.CDate(Sheets("Page1").ComboBox2) 'assume this is the end date
If lngStart > lngEnd Then
MsgBox "The Start Date Can Not Be Bigger Than The End Date.", vbCritical, ""
Sheets("Page1").Range("B:B").AutoFilter field:=1, _
Criteria1:=">=" & lngStart, Operator:=xlAnd, Criteria2:="<=" & lngEnd
Watch the video to see how it’s done and download example file :
Please share using the share button above.
If you found the answer is best answer for your question, Please mark as 'best answer' by clicking on the right tick mark icon at the left side of the answer.
Found the answer useful and wants to credit the user, then vote the answer (vote up).
Enter the destination URL
Or link to existing content