Ok, got that. Do you know what vartype enum is? I'm doing a merge and one of the lines in the macro is:
MergeCode(Codes: Field!; String: "SCHOOL")
In the Object Browser, it says the following for MergeCode:
Sub MergeCode(Codes As MergeCode Codes enum, [String As String])
I don't know what the first parameter should be.
>>"Using the VB editor in Wordperfect9 I figured out the commands to use for the Automation."
>>
>>Hi Ken,
>>
>>I was wondering if you could outline for me how/what you did to figure out the Automation commands.
>>
>>Thanx,
>>
>>Colin Magee
>
>Colin,
>
>Open up wordPerfect 9. Select Visual Basic from the Tools menu and pick Visual Basic Editor. When you are in the Editor choose Object Browser from the View menu. The object browser allows you to look up any command and get the parameter list, constants, etc.
>
>Now as for knowing what commands you need, record a macro to do what you want and then look at the commands WordPerfect records.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.