ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   "Duplicate declaration in current scope" during edit and continue (https://www.excelbanter.com/excel-programming/444421-duplicate-declaration-current-scope-during-edit-continue.html)

Greg Lovern

"Duplicate declaration in current scope" during edit and continue
 
Sometimes when I declare a new variable during edit and continue, I
get the error "Duplicate declaration in current scope", except that
there is no other declaration of the affected variable. The only
solution I've found is to stop the debugging session and restart.
Often that's no problem, but it can be annoying if I'm, say, deep into
a couple nested loops.

Is there a better workaround?


Thanks,

Greg

GS[_2_]

"Duplicate declaration in current scope" during edit and continue
 
Greg Lovern used his keyboard to write :
Sometimes when I declare a new variable during edit and continue, I
get the error "Duplicate declaration in current scope", except that
there is no other declaration of the affected variable. The only
solution I've found is to stop the debugging session and restart.
Often that's no problem, but it can be annoying if I'm, say, deep into
a couple nested loops.

Is there a better workaround?


Thanks,

Greg


Can you show us the code so we can better help you?

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc




All times are GMT +1. The time now is 01:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com