vb6 uses vba for "macro" writing. I can find no documentation on how to do this.
This is a legacy VB6 program written sometime before 2004. I have requirements to update a small bit of it, but it requires editing of the user's macro. I cannot figure out how to "get at" the user's code.
I have the VB6 source code. My client purchased VBA from Microsoft. VBA for VB6 was also available from MSDN in September 2004 under the name "Microsoft Visual Basic for Applications 6.0 SDK Version 6.4 Release Handbook". There is one trivial example and poor documentation. The application allows the user to enter VBA code (most of the time a sort of question) like:
`Sex = Male
If Employee.Age = 16 Then
Print Employee.Name, Employee.Age
End if`
Some of the "questions" consist of a couple of hundred lines of code.
The VB6 program "somehow" executes the "question" and returns output to the user in a rich textbox.
When I look on the Web for VBA and VB6 (and i have done so with many variations) Google and Bing (among others) simply don't understand any questions about hooking VBA to VB6. There are applications (VISIO) which have included VBA. So somewhere, somebody, must know how to put VBA into an application (it is a COM afterall) or where decent documentation exists to accomplish this.
--Charlie