LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Selection Question

lastrow = Cells(Rows.Count, "K").End(xlUp).Row
Cells.Find(What:="WH", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=True) _
.EntireRow.Select

This formula works to find the cell in Range("A:A") with "WH" in it then
select the entire row. What I WANT to do next is select every row above that
selection, not including the selection and delete them.

Example:
That row ends up being row 30, so what I want is row 29 all the way up to 1
all to be selected and deleted. Any ideas??? THANKS!!!
 
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
VBA range selection question Pete[_7_] Excel Worksheet Functions 24 May 10th 11 07:29 PM
Filter and selection question tjcmills Excel Discussion (Misc queries) 1 April 2nd 09 11:59 AM
A cell selection question jezzica85 Excel Discussion (Misc queries) 1 April 8th 06 12:40 AM
Range(Selection...question JimDandy[_2_] Excel Programming 2 August 20th 05 02:29 PM
Selection Change question Chip Pearson Excel Programming 3 August 14th 03 05:16 PM


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

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

About Us

"It's about Microsoft Excel"