S
S. Daum
I developed some code in an Excel Workbook. It all worked fine. I did "Save
as" - and selected "add-in." I'm using Excel 2002. In another sheet - I try
to select this add-in from Tools/Addins. I get errors when my code tries to
reference any sheet in the original workbook. For example a line like this:
Dim xs as Excel.Worksheet
Set xs = Application.Workbooks("MyCodeWorkBook.xls")
This line causes an error - subscript out of range in the add-in but works
from my "code sheet."
It is like the "add-in" does not see it's own workbook - when running as a
add-in. Any advice appreciated.
Steve
as" - and selected "add-in." I'm using Excel 2002. In another sheet - I try
to select this add-in from Tools/Addins. I get errors when my code tries to
reference any sheet in the original workbook. For example a line like this:
Dim xs as Excel.Worksheet
Set xs = Application.Workbooks("MyCodeWorkBook.xls")
This line causes an error - subscript out of range in the add-in but works
from my "code sheet."
It is like the "add-in" does not see it's own workbook - when running as a
add-in. Any advice appreciated.
Steve