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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,215,314
Messages
6,124,204
Members
449,147
Latest member
sweetkt327

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