Hi I am new to excel and this forum. I hope my question is simple and one of you can make my weekend :D
I have a workbook with three sheets:
Sheet 1 - Request
Sheet 2 - In Progress
Sheet 3 - Processed
I created Macro that based on conditions met on Sheet1 it copies it to Sheet2 BUT the macro range is set to what I filtered to: Rows("5:21").Select
Here is the code:
Sub Macro1()
' Macro1 Macro
Range("B4").Select
ActiveWindow.ScrollColumn = 2
Range("B4:S4").Select
Selection.AutoFilter
ActiveSheet.Range("$B$4:$S$5").AutoFilter Field:=1, Criteria1:="=", _
Operator:=xlAnd
Sheets("Request Form").Select
Range("B4:S4").Select
Selection.AutoFilter
ActiveSheet.Range("$B$4:$S$109").AutoFilter Field:=18, Criteria1:= _
"APPROVED"
Rows("5:21").Select
Selection.Copy
Sheets("Approved To Be Proccessed").Select
ActiveWindow.ScrollColumn = 1
Range("A6").Select
ActiveSheet.Paste
Rows("4:4").Select
Application.CutCopyMode = False
Selection.AutoFilter
Sheets("Request Form").Select
Rows("4:4").Select
Selection.AutoFilter
Sheets("Approved To Be Proccessed").Select
End Sub
My ultimate goal is to copy approved rows from Sheet 1 copy them to Sheet2 then delete the rows from Sheet1. Then on Sheet 2, create another condition where once it is processed to then deleted it from Sheet2 and copy it to Sheet3. Sheet 3 will be where all completed rows will be held.
Thank you in advance for your help....
I have a workbook with three sheets:
Sheet 1 - Request
Sheet 2 - In Progress
Sheet 3 - Processed
I created Macro that based on conditions met on Sheet1 it copies it to Sheet2 BUT the macro range is set to what I filtered to: Rows("5:21").Select
Here is the code:
Sub Macro1()
' Macro1 Macro
Range("B4").Select
ActiveWindow.ScrollColumn = 2
Range("B4:S4").Select
Selection.AutoFilter
ActiveSheet.Range("$B$4:$S$5").AutoFilter Field:=1, Criteria1:="=", _
Operator:=xlAnd
Sheets("Request Form").Select
Range("B4:S4").Select
Selection.AutoFilter
ActiveSheet.Range("$B$4:$S$109").AutoFilter Field:=18, Criteria1:= _
"APPROVED"
Rows("5:21").Select
Selection.Copy
Sheets("Approved To Be Proccessed").Select
ActiveWindow.ScrollColumn = 1
Range("A6").Select
ActiveSheet.Paste
Rows("4:4").Select
Application.CutCopyMode = False
Selection.AutoFilter
Sheets("Request Form").Select
Rows("4:4").Select
Selection.AutoFilter
Sheets("Approved To Be Proccessed").Select
End Sub
My ultimate goal is to copy approved rows from Sheet 1 copy them to Sheet2 then delete the rows from Sheet1. Then on Sheet 2, create another condition where once it is processed to then deleted it from Sheet2 and copy it to Sheet3. Sheet 3 will be where all completed rows will be held.
Thank you in advance for your help....