Hi everybody.
Here's what I've discovered just by chance.
I've an excel 2000 workbook with a form that's always shown as it's loaded via workbook_open event and unloaded via workbook_beforeclose event.
I realized that if I put , in workbook_open event, the code
application.windowstate=xlminimized here's what happens:
1)the workbook icon on task bar flashes.
2)Clicking on that icon, the form is shown directly on desktop(Excel remains an icon).
The result is that I can use that form as if it was an independent application, without visualizing excel sheets. it is not necessary to show any sheet. Sheets contains data and formulas but any input and output is done from form.
So, here's my question.
What's the code to get that click on workbook icon programmatically?
I tried both with "appactivate" and with "Windows("mywb.xls").activate" but it didn't work (maybe because such code cannot be referred to the same workbook in which it is written).
Any help will be much appreciated.
Thank you all.
Regards.
Nick.
Here's what I've discovered just by chance.
I've an excel 2000 workbook with a form that's always shown as it's loaded via workbook_open event and unloaded via workbook_beforeclose event.
I realized that if I put , in workbook_open event, the code
application.windowstate=xlminimized here's what happens:
1)the workbook icon on task bar flashes.
2)Clicking on that icon, the form is shown directly on desktop(Excel remains an icon).
The result is that I can use that form as if it was an independent application, without visualizing excel sheets. it is not necessary to show any sheet. Sheets contains data and formulas but any input and output is done from form.
So, here's my question.
What's the code to get that click on workbook icon programmatically?
I tried both with "appactivate" and with "Windows("mywb.xls").activate" but it didn't work (maybe because such code cannot be referred to the same workbook in which it is written).
Any help will be much appreciated.
Thank you all.
Regards.
Nick.