B
BigJimmer
I have an add-in that runs code when any workbook is opened.
During these steps the CodeName of some worksheets in the workbook being
opened are referenced.
If Excel is running before a particular file is opened, and then the
workbook is opened, the code works fine.
However, if Excel is not running, and I double click on the Excel file to
open it, when I get to the step where I reference the CodeName it returns an
empty string.
In trying to debug this I added the following to be able to break into the
code...
x = ws.CodeName
err.raise
When I debug at this breakpoint, I see x = "" and yet when I hover over
ws.CodeName I see the actual worksheet CodeName (it is no longer "").
Does anyone know why this would be happening?
Thanks!
During these steps the CodeName of some worksheets in the workbook being
opened are referenced.
If Excel is running before a particular file is opened, and then the
workbook is opened, the code works fine.
However, if Excel is not running, and I double click on the Excel file to
open it, when I get to the step where I reference the CodeName it returns an
empty string.
In trying to debug this I added the following to be able to break into the
code...
x = ws.CodeName
err.raise
When I debug at this breakpoint, I see x = "" and yet when I hover over
ws.CodeName I see the actual worksheet CodeName (it is no longer "").
Does anyone know why this would be happening?
Thanks!