W
William
Hi,
G'd morning. In Office 2003, I created a Word template which has a word
document, VBA code, and couple of FORMs. And, I'm getting very strange error
when I change the template.
I added a new textbox, an activeX obj, to the word document, but it seemed
that the old document, created without the new textbox, didn't like the new
textbox somehow, I think.
I got the following error:
Run-time error '430':
Class does not support Automation or does not support expected interface.
the code:
ActiveDocument.txtCompanyName.text = "My Company"
txtCompanyName is the name of the textbox created before.
If I delete the newly created obj from the template, all the old documents
work fine with the code.
I don't know if there is any change in Office 2003 on how to reference
ActiveX obj. Or, I should register the objs before I reference to them in VBA
code.
Is anyone has come across this type of problem?
Thank you very much.
Will.
--
G'd morning. In Office 2003, I created a Word template which has a word
document, VBA code, and couple of FORMs. And, I'm getting very strange error
when I change the template.
I added a new textbox, an activeX obj, to the word document, but it seemed
that the old document, created without the new textbox, didn't like the new
textbox somehow, I think.
I got the following error:
Run-time error '430':
Class does not support Automation or does not support expected interface.
the code:
ActiveDocument.txtCompanyName.text = "My Company"
txtCompanyName is the name of the textbox created before.
If I delete the newly created obj from the template, all the old documents
work fine with the code.
I don't know if there is any change in Office 2003 on how to reference
ActiveX obj. Or, I should register the objs before I reference to them in VBA
code.
Is anyone has come across this type of problem?
Thank you very much.
Will.
--