Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Highlight multiple findings in Excel

Hi everyone,

I need to highlight multiple findings in excel for deletion, Is it possible?
Basically there are two format of data in one column and i need to find all
cells with font size 16 and delete it.

Many Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Highlight multiple findings in Excel

Rick

Sub CellFont()
For Each cel In Selection
If cel.Font.Size = 16 Then
cel.Delete Shift:=xlUp
' cel.clearcontents
End If
Next
End Sub


Gord Dibben MS Excel MVP

On Tue, 15 Aug 2006 10:17:02 -0700, Rick .<
wrote:

Hi everyone,

I need to highlight multiple findings in excel for deletion, Is it possible?
Basically there are two format of data in one column and i need to find all
cells with font size 16 and delete it.

Many Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Highlight multiple findings in Excel

Hi Gord,

Thank you for your quick reply.
I seleted a column and tried but only part of the size 16 cells are deleted.
In fact, what i want is to clear the content rather than deleting the cell,
is it possible?

thanks

"Gord Dibben" wrote:

Rick

Sub CellFont()
For Each cel In Selection
If cel.Font.Size = 16 Then
cel.Delete Shift:=xlUp
' cel.clearcontents
End If
Next
End Sub


Gord Dibben MS Excel MVP

On Tue, 15 Aug 2006 10:17:02 -0700, Rick .<
wrote:

Hi everyone,

I need to highlight multiple findings in excel for deletion, Is it possible?
Basically there are two format of data in one column and i need to find all
cells with font size 16 and delete it.

Many Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Highlight multiple findings in Excel

Hi,

Got it! the code is wounderful~~ thank you!

"Rick .<" wrote:

Hi Gord,

Thank you for your quick reply.
I seleted a column and tried but only part of the size 16 cells are deleted.
In fact, what i want is to clear the content rather than deleting the cell,
is it possible?

thanks

"Gord Dibben" wrote:

Rick

Sub CellFont()
For Each cel In Selection
If cel.Font.Size = 16 Then
cel.Delete Shift:=xlUp
' cel.clearcontents
End If
Next
End Sub


Gord Dibben MS Excel MVP

On Tue, 15 Aug 2006 10:17:02 -0700, Rick .<
wrote:

Hi everyone,

I need to highlight multiple findings in excel for deletion, Is it possible?
Basically there are two format of data in one column and i need to find all
cells with font size 16 and delete it.

Many Thanks



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Highlight multiple findings in Excel

You found the commented out "cel.clearcontents" line I assume.

Thanks for the feedback


Gord

On Tue, 15 Aug 2006 12:38:01 -0700, Rick .<
wrote:

Hi,

Got it! the code is wounderful~~ thank you!

"Rick .<" wrote:

Hi Gord,

Thank you for your quick reply.
I seleted a column and tried but only part of the size 16 cells are deleted.
In fact, what i want is to clear the content rather than deleting the cell,
is it possible?

thanks

"Gord Dibben" wrote:

Rick

Sub CellFont()
For Each cel In Selection
If cel.Font.Size = 16 Then
cel.Delete Shift:=xlUp
' cel.clearcontents
End If
Next
End Sub


Gord Dibben MS Excel MVP

On Tue, 15 Aug 2006 10:17:02 -0700, Rick .<
wrote:

Hi everyone,

I need to highlight multiple findings in excel for deletion, Is it possible?
Basically there are two format of data in one column and i need to find all
cells with font size 16 and delete it.

Many Thanks



Gord Dibben MS Excel MVP


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
Multiple Subtotal levels in Excel 2003 Chris Luka Excel Worksheet Functions 2 April 12th 06 06:48 PM
How do I get multiple Excel Windows again W. Scott Howard Excel Discussion (Misc queries) 5 April 7th 06 09:21 PM
match multiple criteria and highlight corresponding row in Excel D Assess Excel Worksheet Functions 1 March 2nd 06 04:22 PM
how to copy multiple Excel files from Outlook into Excel??? Brainless_in_Boston Excel Discussion (Misc queries) 0 February 24th 06 03:46 PM
Excel gets subtotals out of order using multiple sorts and subtot. jeffl Excel Discussion (Misc queries) 1 March 29th 05 01:35 AM


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