Sub SelectmultipleBetween()
Sheets("sheet1").Select
Dim findrow As Long, findrow2 As Long
findrow = Range("B:B").Find("idle").Row
findrow2 = Range("B:B").Find("proc", Range("B" & findrow)).Row
Range("B" & findrow + 1 & ":B" & findrow2 - 1).Select
Selection.Copy
Sheets("sheet2").Select
Range("C1").Select
ActiveSheet.Paste
Sheets("sheet1").Select
findrow = Range("B:B").Find("idle").Row
MatchCase:=False, SearchFormat:=False).Activate
findrow2 = Range("B:B").Find("proc", Range("B" & findrow)).Row
Range("B" & findrow + 1 & ":B" & findrow2 - 1).Select
Selection.Copy
Sheets("sheet2").Select
Range("D1").Select
ActiveSheet.Paste
Sheets("sheet1").Select
findrow = Range("B:B").Find("idle").Row
MatchCase:=False, SearchFormat:=False).Activate
findrow2 = Range("B:B").Find("proc", Range("B" & findrow)).Row
Range("B" & findrow + 1 & ":B" & findrow2 - 1).Select
Selection.Copy
Sheets("sheet2").Select
Range("E1").Select
ActiveSheet.Paste
Sheets("sheet1").Select
findrow = Range("B:B").Find("idle").Row
MatchCase:=False, SearchFormat:=False).Activate
findrow2 = Range("B:B").Find("proc", Range("B" & findrow)).Row
Range("B" & findrow + 1 & ":B" & findrow2 - 1).Select
Selection.Copy
Sheets("sheet2").Select
Range("F1").Select
ActiveSheet.Paste
End Sub
Am new to VBA please help to select multiple ranges in same columns
This is not working to pick multiple ranges its only taking 1st range from the column
Sheets("sheet1").Select
Dim findrow As Long, findrow2 As Long
findrow = Range("B:B").Find("idle").Row
findrow2 = Range("B:B").Find("proc", Range("B" & findrow)).Row
Range("B" & findrow + 1 & ":B" & findrow2 - 1).Select
Selection.Copy
Sheets("sheet2").Select
Range("C1").Select
ActiveSheet.Paste
Sheets("sheet1").Select
findrow = Range("B:B").Find("idle").Row
MatchCase:=False, SearchFormat:=False).Activate
findrow2 = Range("B:B").Find("proc", Range("B" & findrow)).Row
Range("B" & findrow + 1 & ":B" & findrow2 - 1).Select
Selection.Copy
Sheets("sheet2").Select
Range("D1").Select
ActiveSheet.Paste
Sheets("sheet1").Select
findrow = Range("B:B").Find("idle").Row
MatchCase:=False, SearchFormat:=False).Activate
findrow2 = Range("B:B").Find("proc", Range("B" & findrow)).Row
Range("B" & findrow + 1 & ":B" & findrow2 - 1).Select
Selection.Copy
Sheets("sheet2").Select
Range("E1").Select
ActiveSheet.Paste
Sheets("sheet1").Select
findrow = Range("B:B").Find("idle").Row
MatchCase:=False, SearchFormat:=False).Activate
findrow2 = Range("B:B").Find("proc", Range("B" & findrow)).Row
Range("B" & findrow + 1 & ":B" & findrow2 - 1).Select
Selection.Copy
Sheets("sheet2").Select
Range("F1").Select
ActiveSheet.Paste
End Sub
Am new to VBA please help to select multiple ranges in same columns
This is not working to pick multiple ranges its only taking 1st range from the column