Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default hi-lite missing field with macro

Hi I've seen some samples, but not exactly what I'm looking for

If data entered in column A:

= A, then check the corresponding row, columns B, M and R - if these are
blank highlight them in yellow
= D, then check the corresponding row, columns C, D and S - if these are
blank
highlight them in yellow

Any help is appreciated!!
T


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default hi-lite missing field with macro

Hi Theo,

Made this code, which I think would solve your problem.

Sub ShowMissingInformation()
For Each cll In Range("A:A")
If cll.Value = "A" Then
If IsEmpty(cll.Offset(0, 1)) Then cll.Offset(0, 1).Interior.ColorIndex =
6 _
Else cll.Offset(0, 1).Interior.ColorIndex = xlNone
If IsEmpty(cll.Offset(0, 12)) Then cll.Offset(0, 12).Interior.ColorIndex
= 6 _
Else cll.Offset(0, 12).Interior.ColorIndex = xlNone
If IsEmpty(cll.Offset(0, 17)) Then cll.Offset(0, 17).Interior.ColorIndex
= 6 _
Else cll.Offset(0, 17).Interior.ColorIndex = xlNone
End If
If cll.Value = "D" Then
If IsEmpty(cll.Offset(0, 2)) Then cll.Offset(0, 2).Interior.ColorIndex =
6 _
Else cll.Offset(0, 2).Interior.ColorIndex = xlNone
If IsEmpty(cll.Offset(0, 3)) Then cll.Offset(0, 3).Interior.ColorIndex =
6 _
Else cll.Offset(0, 3).Interior.ColorIndex = xlNone
If IsEmpty(cll.Offset(0, 18)) Then cll.Offset(0, 18).Interior.ColorIndex
= 6 _
Else cll.Offset(0, 18).Interior.ColorIndex = xlNone
End If
Next

End Sub
regards,
Lazzzx

"Theo" skrev i meddelelsen
...
Hi I've seen some samples, but not exactly what I'm looking for

If data entered in column A:

= A, then check the corresponding row, columns B, M and R - if these are
blank highlight them in yellow
= D, then check the corresponding row, columns C, D and S - if these are
blank
highlight them in yellow

Any help is appreciated!!
T



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default hi-lite missing field with macro

Thank you so much !
It was perfect.

T

"Lazzzx" wrote:

Hi Theo,

Made this code, which I think would solve your problem.

Sub ShowMissingInformation()
For Each cll In Range("A:A")
If cll.Value = "A" Then
If IsEmpty(cll.Offset(0, 1)) Then cll.Offset(0, 1).Interior.ColorIndex =
6 _
Else cll.Offset(0, 1).Interior.ColorIndex = xlNone
If IsEmpty(cll.Offset(0, 12)) Then cll.Offset(0, 12).Interior.ColorIndex
= 6 _
Else cll.Offset(0, 12).Interior.ColorIndex = xlNone
If IsEmpty(cll.Offset(0, 17)) Then cll.Offset(0, 17).Interior.ColorIndex
= 6 _
Else cll.Offset(0, 17).Interior.ColorIndex = xlNone
End If
If cll.Value = "D" Then
If IsEmpty(cll.Offset(0, 2)) Then cll.Offset(0, 2).Interior.ColorIndex =
6 _
Else cll.Offset(0, 2).Interior.ColorIndex = xlNone
If IsEmpty(cll.Offset(0, 3)) Then cll.Offset(0, 3).Interior.ColorIndex =
6 _
Else cll.Offset(0, 3).Interior.ColorIndex = xlNone
If IsEmpty(cll.Offset(0, 18)) Then cll.Offset(0, 18).Interior.ColorIndex
= 6 _
Else cll.Offset(0, 18).Interior.ColorIndex = xlNone
End If
Next

End Sub
regards,
Lazzzx

"Theo" skrev i meddelelsen
...
Hi I've seen some samples, but not exactly what I'm looking for

If data entered in column A:

= A, then check the corresponding row, columns B, M and R - if these are
blank highlight them in yellow
= D, then check the corresponding row, columns C, D and S - if these are
blank
highlight them in yellow

Any help is appreciated!!
T




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
Data missing in field in pivot table Gilly[_2_] Excel Discussion (Misc queries) 1 June 3rd 10 12:07 PM
Missing values from a pivot table field Kelli[_2_] Excel Worksheet Functions 1 April 27th 10 07:44 PM
Pivot table field list missing Dianeg Excel Worksheet Functions 5 April 11th 10 12:13 PM
count missing field aditya Excel Discussion (Misc queries) 2 June 4th 09 02:27 PM
Pivot table field missing DianeG Excel Worksheet Functions 1 May 9th 08 06:27 PM


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