> Option Explicit was already declared...
>
> I don't remember having this much trouble with earlier versions of
> Excel...
>
>
> "ShaneDevenshire" wrote:
>
>> Hi,
>>
>> First - to have to rerun all the step again is tedious so you should
>> insert
>> a breakpoint at the location where you were force to stop.
>>
>> Second - if you declare a variable during execution Excel may require you
>> to
>> restart, regardless of what the message says.
>>
>> Third - you might be able to reduce the problem by setting Option
>> Explicit
>> at the top of the module.
>>
>> There is some info here:
>>
>>
http://support.microsoft.com/kb/212673/en-us>>
>> --
>> Thanks,
>> Shane Devenshire
>>
>>
>> "Ron West" wrote:
>>
>> > When altering XL2007 VBA code in break mode, I often have to declare
>> > new
>> > variables (eg with datatypes Boolean and Date) and I frequently get a
>> > faulty
>> > 'compile error' message saying that there is a "Duplicate Declaration
>> > in
>> > Current Scope" when trying to continue.
>> >
>> > There is no way out of it except to halt the program and completely
>> > restart
>> > it from the beginning.
>> >
>> > And, there absolutely definitely isn't a duplicate declaration because
>> > I can
>> > compile and run the code with no alterations once I have stopped the
>> > code
>> > (and wasted my previous run).