LPittenger
New member
- Local time
- Yesterday, 20:35
- Joined
- Aug 22, 2008
- Messages
- 7
I've got a VisualBasic routine set to clear one set of cells when a change occurs in another set. Everything works fine until it actually reaches the command to clear the cells. Stepping through in the debugger, I see that it has correctly found the proper range to clear and is looping through the cells.
But then the cells simply don't clear. Doesn't work with ClearContents for cell or range; doesn't work for setting value = ""; doesn't work for anything I try.
I've turned off locking & protection on all affected cells.
The odd thing is that the identical code works fine in a dummy workbook created from scratch. When I first saw this, I figured it was some glitch in my original sheet, so I"ve copied the whole thing into a fresh workbook... but this new workbook is now showing precisely that same behavior.
What is preventing my routine from changing the cells in my workbook?!
thanks
LP
But then the cells simply don't clear. Doesn't work with ClearContents for cell or range; doesn't work for setting value = ""; doesn't work for anything I try.
I've turned off locking & protection on all affected cells.
The odd thing is that the identical code works fine in a dummy workbook created from scratch. When I first saw this, I figured it was some glitch in my original sheet, so I"ve copied the whole thing into a fresh workbook... but this new workbook is now showing precisely that same behavior.
What is preventing my routine from changing the cells in my workbook?!

thanks
LP