Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default find a cell, jump to next roll and clear all cells

Hello,

Does anyone know how to write a macro to find a specific text, then say
go to next row and clear everything below.

Thanks
Lai
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default find a cell, jump to next roll and clear all cells

Lai

without a bit more detailed information, the simple answer is yes, I'm sure
lots of people know how to write a macro to do this. Try something similar
to the following:

Sub DeleteRowsBelowXXX()
Dim SearchRow As String
SearchRow = Cells.Find(What:="xxx", _
After:=ActiveCell, _
LookIn:=xlFormulas, _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False).Row
Range("A" & SearchRow + 1 & ":A65536").EntireRow.Delete
End Sub

Regards

Trevor


"jigsaw2" wrote in message
...
Hello,

Does anyone know how to write a macro to find a specific text, then say
go to next row and clear everything below.

Thanks
Lai



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer a name from one cell to another but leave clear if clear? Scoober Excel Worksheet Functions 3 May 22nd 09 02:55 AM
How do I get a total adding cells from other sheets for a roll-up John Boy Excel Worksheet Functions 1 September 5th 07 11:29 PM
I want to jump to different cells with tab A-s Excel Discussion (Misc queries) 3 July 3rd 06 10:13 AM
roll data up from cell Tmo Excel Discussion (Misc queries) 1 April 5th 06 02:26 PM
CLEAR FIND BUFFER UPON CLOSING Chris in NH Excel Worksheet Functions 0 July 6th 05 06:39 PM


All times are GMT +1. The time now is 10:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"