Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I am writing this code (below) and a window appears with Compile error and Syntax error. I am having also this part of the code highlighted. Range("A105").Value = IIf(Range("F102") = Range("G102"), Range("A99"), IIf(Range("F102") Range("G102"), Range("E102"), This is the code: Option Explicit Dim nextSecond Sub startFlashing() flashCell End Sub Sub stopFlashing() On Error Resume Next Application.OnTime nextSecond, "flashCell", , False End Sub Sub flashCell() nextSecond = Now + TimeValue("00:00:01") Application.OnTime nextSecond, "flashCell" If Range("A105").Interior.ColorIndex =4 Then Range("A105").Interior.ColorIndex = 6 Range("A105").Value = IIf(Range("F102") = Range("G102"), Range("A99"), IIf(Range("F102") Range("G102"), Range("E102"), Range("H102"))) ElseIf Range("A105").Interior.ColorIndex = 6 Then Range("A105").Interior.ColorIndex = 4 Range("A105").Value = "WORLD CHAMPIONS 2010" End If End Sub I appriciate even a small help. Thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Bubble sort Error (Compile Error: Type Mismtach) | Excel Programming | |||
VBAProject name compile error, not defined at compile time | Excel Programming | |||
error message: compile error, argument not optional | Excel Programming | |||
How do I get rid of "Compile error in hidden module" error message | Excel Discussion (Misc queries) |