A
Andy
I have an Access subroutine which creates a new Excel Application as an
Object and adds a workbook, worksheet, writes data to the worksheet, etc.
I need to close the subroutine and call another subroutine which can access
the same instance of the Excel application object and continue to add
worksheets and data within the same workbook.
I would like to pass the reference to the object between subroutines instead
of saving the workbook to a well known destination and then opening it again
from the second subroutine - i.e. the Excel Application only gets opened once.
Any ideas?
Thanks,
Andy.
Object and adds a workbook, worksheet, writes data to the worksheet, etc.
I need to close the subroutine and call another subroutine which can access
the same instance of the Excel application object and continue to add
worksheets and data within the same workbook.
I would like to pass the reference to the object between subroutines instead
of saving the workbook to a well known destination and then opening it again
from the second subroutine - i.e. the Excel Application only gets opened once.
Any ideas?
Thanks,
Andy.