question about navigating workbooks / add-ins:
we have a couple of subs distributing a 6000-line list (input-sheet) from one worksheet onto about 30 new sheets (output-sheets), which will be created in this process according to another worksheet (reference-sheet). The input-sheet and the newly created output-sheets are within the same workbook (WB1). During development the Modules and the reference sheet was also within the same workbook (WB1).
Making the thing an "add-in" and installing the add-in (creating a toolbar and a button) the modules and the reference-sheet became a workbook of their own (WB2). Loading the input-sheet creates a workbook of their own (WB1).
Now, VB help says, that you can NOT reference a workbook from within an add-in; we verified this: workbooks.itemX and workbooks.application... work within all the "normal" workbooks to reference each other, but from an add-in workbooks.XXXX is -at least- unreliable (=does not work).
For those who are interested: all the output-sheets are created in the "add-in" workbook (WB2), not in the "input-workbook" (WB1).
Ok, here is the million $ question:
how to get the add-in and the input-worksheet to be within one and the same workbook (WB1) so all output worksheets are created within the same workbook,
OR
is there any way to do a cross workbook-referencing between add-in and "normal" workbook (which VB help says: no).
System info:
VB-Office 97 and Office XP, input-data are Office 95
conversion to Office 97 is possible, Office 2000/XP is not.
Thank You (for reading )
matt
we have a couple of subs distributing a 6000-line list (input-sheet) from one worksheet onto about 30 new sheets (output-sheets), which will be created in this process according to another worksheet (reference-sheet). The input-sheet and the newly created output-sheets are within the same workbook (WB1). During development the Modules and the reference sheet was also within the same workbook (WB1).
Making the thing an "add-in" and installing the add-in (creating a toolbar and a button) the modules and the reference-sheet became a workbook of their own (WB2). Loading the input-sheet creates a workbook of their own (WB1).
Now, VB help says, that you can NOT reference a workbook from within an add-in; we verified this: workbooks.itemX and workbooks.application... work within all the "normal" workbooks to reference each other, but from an add-in workbooks.XXXX is -at least- unreliable (=does not work).
For those who are interested: all the output-sheets are created in the "add-in" workbook (WB2), not in the "input-workbook" (WB1).
Ok, here is the million $ question:
how to get the add-in and the input-worksheet to be within one and the same workbook (WB1) so all output worksheets are created within the same workbook,
OR
is there any way to do a cross workbook-referencing between add-in and "normal" workbook (which VB help says: no).
System info:
VB-Office 97 and Office XP, input-data are Office 95
conversion to Office 97 is possible, Office 2000/XP is not.
Thank You (for reading )
matt