lakshmipathi123
Board Regular
- Joined
- Jul 10, 2012
- Messages
- 52
- Office Version
- 365
- Platform
- Windows
Hi Experts,
Could you please provide me macro coding for Find and copy.
Here is an example
I have data around 15000 lines. I need segregate the data into 4 accounts. i.e.20310-0000,20320-0000,20110- and 20280.
Macro should find macro first line 20310-0000 copy till last line of 20310-0000 and paste into sheet 2
Thank you,
Lakshmipathi
Could you please provide me macro coding for Find and copy.
Here is an example
I have data around 15000 lines. I need segregate the data into 4 accounts. i.e.20310-0000,20320-0000,20110- and 20280.
Macro should find macro first line 20310-0000 copy till last line of 20310-0000 and paste into sheet 2
VBA Code:
Range("A1").Select
Cells.Find(What:="Liability Account : 20110-", After:=ActiveCell, _
LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Activate
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy
Sheets("20110 - Detailed Invoice Aging").Select
Range("A2").Select
ActiveSheet.Paste
Thank you,
Lakshmipathi
Last edited by a moderator: