Hello I have multiple sheets in a workbook (30 + Sheets) Plus more added randomly as project grows. On every sheet I need to automatically copy column A range A3: A500 and Column C's range :C3:C500 Data based on cell value "Yes" from Column B and Paste all of them to a sheet called Approved_Requests in Column A & B from a button. Im having trouble crawling all the sheets with the code I have it collect data from some of the sheets at once. However, it doesn't do it for all of them it skips some which I don't understand why. I have searched several places on the internet but cant figure it out. I was originally trying to copy those column cell values from A & C and pasting it to J& K on every sheet then to the Approved_Request" sheet with this code but I actually need them to go straight to the sheet "Approved_Request" Here is what I have so far running two different macros Any help would be greatly appreciated if this could be combined to one and crawl all the sheets instead of skipping some.
Sub Mod1()
Application.ScreenUpdating = False
Dim Rng As Range
For Each Rng In Range("B3:B2500")
Select Case Rng.Value
Case "Yes"
Cells(Rng.Row, 10).Value = Cells(Rng.Row, 1).Value
End Select
Next Rng
Application.ScreenUpdating = True
End Sub
Sub Approved()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim Row As Long
Dim Bow1 As Long
Dim shArc As Worksheet
Set shArc = ThisWorkbook.Worksheets("Approved_Request"")
Sheets("Approved_Request"").Activate
Cells.Clear
For Each sh In ThisWorkbook.Worksheets
Select Case sh.Name
Case Is <> "Approved_Request""
Row = shArc.Range("B" & Rows.Count).End(xlUp).Row + 1
sh.Range("J3:J50000").Copy
shArc.Range("B" & Row).PasteSpecial
Bow1 = shArc.Range("B" & Rows.Count).End(xlUp).Row + 1
sh.Range("K3:K50000").Copy
shArc.Range("C" & Row).PasteSpecial
End Select
Next
Application.CutCopyMode = False
Set shArc = Nothing
Set sh = Nothing
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Sub Mod1()
Application.ScreenUpdating = False
Dim Rng As Range
For Each Rng In Range("B3:B2500")
Select Case Rng.Value
Case "Yes"
Cells(Rng.Row, 10).Value = Cells(Rng.Row, 1).Value
End Select
Next Rng
Application.ScreenUpdating = True
End Sub
Sub Approved()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim Row As Long
Dim Bow1 As Long
Dim shArc As Worksheet
Set shArc = ThisWorkbook.Worksheets("Approved_Request"")
Sheets("Approved_Request"").Activate
Cells.Clear
For Each sh In ThisWorkbook.Worksheets
Select Case sh.Name
Case Is <> "Approved_Request""
Row = shArc.Range("B" & Rows.Count).End(xlUp).Row + 1
sh.Range("J3:J50000").Copy
shArc.Range("B" & Row).PasteSpecial
Bow1 = shArc.Range("B" & Rows.Count).End(xlUp).Row + 1
sh.Range("K3:K50000").Copy
shArc.Range("C" & Row).PasteSpecial
End Select
Next
Application.CutCopyMode = False
Set shArc = Nothing
Set sh = Nothing
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub