D
David Cleave
Hi all
I have a form which is used to run an update process. The update process is
coded in a class module called clsUpdateProcess. clsUpdateProcess is
instantiated by the form to begin the process. As the update process runs, it
generates events which are consumed by the form to provide progress
information to the user.
I want to also have a Word document which summarises the update process. I
have created another class module, clsUpdateDocument, which wraps the
Automation code. I’m a bit confused about how to get clsUpdateDocument to
consume the events produced by clsUpdateProcess. Presumably clsUpdateDocument
needs to declare a reference to the clsUpdateProcess instance in order to
consume its events as follows:
Public WithEvents MyInstance As clsUpdateProcess
But the particular instance I need to refer to is a member of the form’s
class. So how do I point to it?
Or am I going about this the wrong way?
Many thanks
David Cleave
I have a form which is used to run an update process. The update process is
coded in a class module called clsUpdateProcess. clsUpdateProcess is
instantiated by the form to begin the process. As the update process runs, it
generates events which are consumed by the form to provide progress
information to the user.
I want to also have a Word document which summarises the update process. I
have created another class module, clsUpdateDocument, which wraps the
Automation code. I’m a bit confused about how to get clsUpdateDocument to
consume the events produced by clsUpdateProcess. Presumably clsUpdateDocument
needs to declare a reference to the clsUpdateProcess instance in order to
consume its events as follows:
Public WithEvents MyInstance As clsUpdateProcess
But the particular instance I need to refer to is a member of the form’s
class. So how do I point to it?
Or am I going about this the wrong way?
Many thanks
David Cleave