downpastthesign
New Member
- Joined
- Jul 12, 2018
- Messages
- 3
Hi everyone,
Months ago, with the help of this forum, I created the below macro to copy all the documents flagged "Yes" in my Cases worksheet over to my High Priority sheet. It's been working great.
Sub Test()
Dim m As Variant
Dim MatchRow As Long
Dim Cell As Range
With Sheets("Cases")
For Each Cell In .Range("L:L")
m = Application.Match(Cell.Text, Array("Yes"), False)
If Not IsError(m) Then
Cell.EntireRow.Copy Destination:=Worksheets("High Priority").Range("A" & lastrow2 + 1)
lastrow2 = lastrow2 + 1
Else:
End If
Next
End With
End Sub
Now I need to be able to have the macro undertake the following, which is outside my abilities:
- input the rows flagged "Yes" starting at cell A3 to allow for headings to be added in
- only copy over columns A to K
- do all the above for a new sheet called Cases2
Any assistance is greatly appreciated.
Months ago, with the help of this forum, I created the below macro to copy all the documents flagged "Yes" in my Cases worksheet over to my High Priority sheet. It's been working great.
Sub Test()
Dim m As Variant
Dim MatchRow As Long
Dim Cell As Range
With Sheets("Cases")
For Each Cell In .Range("L:L")
m = Application.Match(Cell.Text, Array("Yes"), False)
If Not IsError(m) Then
Cell.EntireRow.Copy Destination:=Worksheets("High Priority").Range("A" & lastrow2 + 1)
lastrow2 = lastrow2 + 1
Else:
End If
Next
End With
End Sub
Now I need to be able to have the macro undertake the following, which is outside my abilities:
- input the rows flagged "Yes" starting at cell A3 to allow for headings to be added in
- only copy over columns A to K
- do all the above for a new sheet called Cases2
Any assistance is greatly appreciated.