Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Specific Cell Selecting

Now I want to select every cell in a column with the word "Critical" in it
and have the contents deleted. So: Select every cell in column H with the
word "Critical" in it then have it deleted. What would that look like in a
formula for a macro??? THANKS!!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default Specific Cell Selecting

Rows(1).Insert
Columns("H:H").AutoFilter field:=1, Criteria1:="Critical"
Columns("H:H").SpecialCells(xlCellTypeVisible).Ent ireRow.Delete


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"bodhisatvaofboogie" wrote in
message ...
Now I want to select every cell in a column with the word "Critical" in it
and have the contents deleted. So: Select every cell in column H with

the
word "Critical" in it then have it deleted. What would that look like in

a
formula for a macro??? THANKS!!!!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Specific Cell Selecting

Sub DeleteCriticalRows()
Dim rng as Range
set rng = columns("H").find("critical", Range("H1"))
if not rng is nothing then
do
rng.Entirerow.Delete
set rng = columns("H").find("critical",Range("H1"))
loop while not rng is nothing
End if
End sub

--
Regards,
Tom Ogilvy

"bodhisatvaofboogie" wrote:

Now I want to select every cell in a column with the word "Critical" in it
and have the contents deleted. So: Select every cell in column H with the
word "Critical" in it then have it deleted. What would that look like in a
formula for a macro??? THANKS!!!!

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
Selecting a specific worksheet Jackie New Users to Excel 5 February 25th 09 07:03 PM
Selecting specific numbers from a cell containing multiple numbers JRD Excel Worksheet Functions 3 January 18th 09 12:32 AM
Selecting specific cells Michelle Excel Discussion (Misc queries) 1 March 12th 08 05:06 PM
Selecting many specific columns for a chart porridge Charts and Charting in Excel 2 July 26th 06 07:49 PM
Selecting a specific cell (that is data validated) cliodne[_13_] Excel Programming 2 April 23rd 06 07:55 AM


All times are GMT +1. The time now is 06:57 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"