Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm having trouble with my code. It works when I step through it but not otherwise. So I'm trouble shooting the references with Debug.Print. Heres a couple of lines that I find inexplicable. They are right ontop of each other as I've put them below: Debug.Print "starting " & theStartingCell.Address theStartingCell.Interior.Color = vbRed Debug.Print "starting " & theStartingCell.Address The results in the immediates window are "starting $A$5" for both debug.print lines which is as expected. However when running it it makes $a$6 red in colour. When stepping through it makes $a$5 red in color. How could the reference change from one line to another. The code is in a module if thats pertinent. I'm totally confused as to how this could be possible Any guidance would be greatly appreciated Thanks Suzanne |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help to understand "IF" code | New Users to Excel | |||
How to see how many lines of code ? | Excel Programming | |||
Help me understand this code | Excel Discussion (Misc queries) | |||
Code to write out all lines of code | Excel Programming | |||
Lines fo code | Excel Programming |