Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default identifying blank cells by a colour

I have a worksheet with data and some areas do not have data to be filled in
later. Before checking I want to identify the cells which are blank with a
color so that these can be looked and data fed. i think this can be done by
go to special command. But I want some one to provide me with a code so that
the same can be used for other worksheets also.

thank in advance. I am using excel 2003

seenu
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default identifying blank cells by a colour

Hi Srinivasan,

Try:

'=============
Public Sub Tester()
Dim rng As Range

Set rng = Range("A1:A50") '<<==== CHANGE

On Error Resume Next
rng.SpecialCells(xlCellTypeBlanks).Interior.ColorI ndex = 6
On Error GoTo 0

End Sub
'<<=============


---
Regards,
Norman



"srinivasan" wrote in message
...
I have a worksheet with data and some areas do not have data to be filled
in
later. Before checking I want to identify the cells which are blank with a
color so that these can be looked and data fed. i think this can be done
by
go to special command. But I want some one to provide me with a code so
that
the same can be used for other worksheets also.

thank in advance. I am using excel 2003

seenu



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default EditGo ToSpecialBlanks

While working with EditGo ToSpecialBlanks, it captures Merged Cells as
blanks and deletes the values inside. Is there a way, we can control
operation on Merged Cells.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default EditGo ToSpecialBlanks

SpecialCells on its own does not delete anything. What's the overall
objective.

Regards,
Peter T

"Kshipra" wrote in message
...
While working with EditGo ToSpecialBlanks, it captures Merged Cells as
blanks and deletes the values inside. Is there a way, we can control
operation on Merged Cells.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default identifying blank cells by a colour

Enter this macro:

Sub Macro1()
Dim r As Range
For Each r In Selection
If IsEmpty(r.Value) Then
r.Interior.ColorIndex = 6
End If
Next
End Sub

Select any range of cells that you want to examine and mark and run the macro.

Please note that this macro will only color empty cells, not cells that are
blank by reason of formula result.

Have a good day!
--
Gary's Student


"srinivasan" wrote:

I have a worksheet with data and some areas do not have data to be filled in
later. Before checking I want to identify the cells which are blank with a
color so that these can be looked and data fed. i think this can be done by
go to special command. But I want some one to provide me with a code so that
the same can be used for other worksheets also.

thank in advance. I am using excel 2003

seenu



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default identifying blank cells by a colour

Thanks a lot Mr Gary"s student,Philip and Norman for the instant help.

srinivasan
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default identifying blank cells by a colour

Hi,

Try this:

Selection.SpecialCells(xlCellTypeBlanks).Select

of course, you may change Selection to a specifice range, or a variable that
references a range

HTH

Philip

"srinivasan" wrote:

I have a worksheet with data and some areas do not have data to be filled in
later. Before checking I want to identify the cells which are blank with a
color so that these can be looked and data fed. i think this can be done by
go to special command. But I want some one to provide me with a code so that
the same can be used for other worksheets also.

thank in advance. I am using excel 2003

seenu

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
Identifying non-returning formula (blank Cell) Vibeke Excel Worksheet Functions 9 September 4th 09 09:29 AM
No colour in cells when blank in list harwookf Excel Worksheet Functions 1 November 15th 07 08:58 PM
Identifying first non blank cell in 3 different columns belvy123 Excel Discussion (Misc queries) 5 February 21st 07 06:36 AM
Identifying Blank Excel Sheet through .NET code Abhi Kumar Excel Programming 4 September 13th 05 03:33 AM
Identifying blank rows Raj[_8_] Excel Programming 5 February 25th 04 10:59 AM


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