Hi there,
I wish to convert a macro which works fine to a stand-alone VB6 program.
The first line in the macro read: Set fs = Application.Search
In the stand-alone programme however, it returns an error: Application not defined as Variable. With some slight syntax variations, it says Object not defined.
I guess the problem is how to reference in visual Basic an object variable that comes from another programme.
Could the solution lie in using:
Private Statement WithEvents, or New - and how do you use this. Or should the solution be sought elsewhere.
Thanks
I wish to convert a macro which works fine to a stand-alone VB6 program.
The first line in the macro read: Set fs = Application.Search
In the stand-alone programme however, it returns an error: Application not defined as Variable. With some slight syntax variations, it says Object not defined.
I guess the problem is how to reference in visual Basic an object variable that comes from another programme.
Could the solution lie in using:
Private Statement WithEvents, or New - and how do you use this. Or should the solution be sought elsewhere.
Thanks