I have a tab called Source. Within VBA I currently have
Set wsSource = Sheets("Source")
x = wsSource.Range("A1").CurrentRegion.Value
For i = 2 to Ubound(x,1)
......
........
The issue is I now realize that I should only be running the above code (just a sample above) if the records in the source tab are approved. There is a field called Approved where user put yes/no. Thus, how do I change my code so that x reflects only Approved records. I assume I need to create a recordset for x ?
VBAMicrosoft ExcelMicrosoft Office
Last Comment
upobDaPlaya
8/22/2022 - Mon
Shums Faruk
Hi,
Please upload your sample workbook or full code.
David L. Hansen
I'd use a VLookUP function to grab what's in column A based on what the value is in your "Approved" column.
Please upload your sample workbook or full code.