To select a range between two cells containing specified text

AT BABU

Board Regular
Joined
Oct 12, 2018
Messages
54
Office Version
  1. 2016
Platform
  1. Windows
Hi All

Thank you for your Supporting
I have small problem; I copy data between the “Standardization Code: “in single row. The “Standardization Code” part of the sentence

I Get below code but thin code not moving next

Sub SelectBetween()
Dim findrow As Long, findrow2 As Long
'On Error GoTo errhandler
Do While ActiveCell.Value <> Empty
Cells.Find(What:="Standardization Code:", After:=ActiveCell, LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=True, SearchFormat:=False).Activate
findrow = Range("A:A").Find("Standardization Code:", Range("A1")).Row
findrow2 = Range("A:A").Find("Standardization Code:", Range("A" & findrow)).Row
Range("A" & findrow & ":A" & findrow2 - 1).Select
Range(Selection, Selection).EntireRow.Select
Selection.Copy
Sheet2.Select
Range("A1", Range("A" & Rows.Count).End(xlUp)).Offset(1, 0).Activate
ActiveCell.PasteSpecial
Sheet1.Activate
Loop
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top