LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default VBA Help needed

Perhaps...

Sub Check_CEO_OC2()
Dim i&, v As Variant
Const sX_values$ = "J,V,AD,AL,AX,BN,CP"
Const sEmptyValues$ = "F,N,R,Z,AH,AP,AT,BB,BF,BJ,BR,BU,BZ,CD,CH,CL"

For i = 2 To Range("D" & Rows.Count).End(xlUp).Row
If Range("D" & i).Value = "Facility CEO" Then
For Each v In Split(sX_values, ",")
If Range(v & i) < "X" Then _
MsgBox "Cell " & v & " " & i & " Changed"
Next 'v
For Each v In Split(sEmptyValues, ",")
If Range(v & i) < "" Then _
MsgBox "Cell " & v & " " & i & " Changed"
Next 'v
End If
Next i
End Sub

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
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
Deleting Rows With Non-Needed Data between Needed Data Daren Excel Worksheet Functions 2 September 30th 08 06:47 PM
Help needed please TheGodfather[_2_] Excel Discussion (Misc queries) 4 October 28th 07 09:42 PM
If Then help needed RGT New Users to Excel 2 March 18th 05 01:30 AM
Help needed Joydeep das Excel Programming 0 January 29th 04 05:36 AM
xla/xls help needed! MattShoreson[_10_] Excel Programming 1 January 13th 04 09:24 PM


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