M
MikeBTP
I'm having an issue trying to get a COM Addin created with VB 6 to work
properly.
I have a COM DLL Referenced in a Word 2003 template. I open Word and go to
File...New to open this template then look at the VBE code windows and the
TemplateProject (ThisDocument) contains the Sub procedures and the Reference
to the DLL as expected. Yet when I try to run any of the DLL functions in the
document, I get "Object Variable or With block variable not set" error.
I can open Word then open my template as if to edit it and it works fine. It
also works if I change the .DOT extension to .DOC and double-click to open it.
I've tried attaching the template and setting it is an addin and that
doesn't work either.
Any help with this would be greatly appreciated.
Thanks,
Mike
properly.
I have a COM DLL Referenced in a Word 2003 template. I open Word and go to
File...New to open this template then look at the VBE code windows and the
TemplateProject (ThisDocument) contains the Sub procedures and the Reference
to the DLL as expected. Yet when I try to run any of the DLL functions in the
document, I get "Object Variable or With block variable not set" error.
I can open Word then open my template as if to edit it and it works fine. It
also works if I change the .DOT extension to .DOC and double-click to open it.
I've tried attaching the template and setting it is an addin and that
doesn't work either.
Any help with this would be greatly appreciated.
Thanks,
Mike