View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
anilsolipuram[_18_] anilsolipuram[_18_] is offline
external usenet poster
 
Posts: 1
Default Trouble with Elseif command


"if" was commented by mistake .

remove the comment
try this

Sub ContractHighlight()
'
' ContractHighlight Macro
' Macro recorded 23/11/2004 by Keith Holden
'

If h4 1 Then
Range("A4:M4").Select
Selection.Interior.ColorIndex = 3

ElseIf i4 1 Then
Range("A4:M4").Select
Selection.Interior.ColorIndex = 2

End If
End Su

--
anilsolipura
-----------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...fo&userid=1627
View this thread: http://www.excelforum.com/showthread.php?threadid=31985