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

I have a nice macro that does some wonderful stuff. I want to take it a step
further, but I'm at a block. The next step is to take every cell that is
highlighted in yellow and delete the values in them. What would a formula
look like to plug into my macro? THANKS!!!!!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Special Cell Selection

This looks for Yellow #6:

Sub gsnu()
Dim r As Range
For Each r In ActiveSheet.UsedRange
If r.Interior.ColorIndex = 6 Then r.Value = 0
Next
End Sub
--
Gary's Student


"bodhisatvaofboogie" wrote:

I have a nice macro that does some wonderful stuff. I want to take it a step
further, but I'm at a block. The next step is to take every cell that is
highlighted in yellow and delete the values in them. What would a formula
look like to plug into my 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
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
How flip a selection before pasting - Paste special ruks Excel Discussion (Misc queries) 2 May 31st 06 06:38 PM
In Excel: Paste Special should have a "Link Value" Selection Deon Isis Excel Worksheet Functions 0 June 30th 05 02:12 PM
special cell selection raj Excel Programming 7 December 14th 03 06:46 PM
Delete all special characters in a selection? ali Excel Programming 4 December 7th 03 08:45 PM


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