Hello,
I am trying to write into my code that if a cell in therange I am searching has any text to select it for copying. I am using the.TEXT function and the wildcard is not working as a part of the code. Howshould I be putting it. Here is the code I have not:
Sub Sort_Deployed()
a = Worksheets("Master").Cells(Rows.Count,18).End(xlUp).Row
For i = 2 To a
IfWorksheets("Master").Cells(i, 18).Text = “*” Then
Worksheets("Master").Rows(i).Copy
Worksheets("Deployed").Activate
b =Worksheets("Deployed").Cells(Rows.Count, 18).End(xlUp).Row
Worksheets("Deployed").Cells(b + 1, 1).Select
ActiveSheet.Paste
Worksheets("Master").Activate
End If
Next
Application.CutCopyMode = False
End Sub
I am trying to write into my code that if a cell in therange I am searching has any text to select it for copying. I am using the.TEXT function and the wildcard is not working as a part of the code. Howshould I be putting it. Here is the code I have not:
Sub Sort_Deployed()
a = Worksheets("Master").Cells(Rows.Count,18).End(xlUp).Row
For i = 2 To a
IfWorksheets("Master").Cells(i, 18).Text = “*” Then
Worksheets("Master").Rows(i).Copy
Worksheets("Deployed").Activate
b =Worksheets("Deployed").Cells(Rows.Count, 18).End(xlUp).Row
Worksheets("Deployed").Cells(b + 1, 1).Select
ActiveSheet.Paste
Worksheets("Master").Activate
End If
Next
Application.CutCopyMode = False
End Sub