Skip to main content

[archive] Syntax for Word control

  • May 26, 2009
  • 8 replies
  • 0 views

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks

8 replies

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks
I am afraid you cannot do this with the COM support in ACUCOBOL-GT. The problem is that the WordBasic is a scripting engine inside Word itself.
While you can get a dispatch pointer to it using the GetWordBasic method of the Word Application object, accessing its methos requires use of a method that is not implemented in ACUCOBOL-GT, the GetIDsOfNames.

If you were able to get a definition file for the WordBasic object, you might have been able to come up with something, but I don't think so.

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks
Thanks a lot for your answer Gforseth.

I can get back an old file ".DEF" built from MS-word 95. I think that I could find a definition of the WordBasic object there. But I don't know the syntax which it is necessary to use for it.

Do you think that you could help me again on this point ?

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks
Thanks a lot for your answer Gforseth.

I can get back an old file ".DEF" built from MS-word 95. I think that I could find a definition of the WordBasic object there. But I don't know the syntax which it is necessary to use for it.

Do you think that you could help me again on this point ?

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks
Thanks a lot for your answer Gforseth.

I can get back an old file ".DEF" built from MS-word 95. I think that I could find a definition of the WordBasic object there. But I don't know the syntax which it is necessary to use for it.

Do you think that you could help me again on this point ?

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks
If you can upload the .def with the WordBasic we can always give it a shot.

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks
If you can upload the .def with the WordBasic we can always give it a shot.

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks
If you can upload the .def with the WordBasic we can always give it a shot.

[Migrated content. Thread originally posted on 25 May 2009]

Could anyone help me with translating of Vb codes for the Word Control below????

============
WordBasic.DisableAutoMacros 1 ' Disable AutoMacros.
============

I wish to disable macro "AutoOpen" (present in the document) before my program opens this document.

Thanks
Sorry : I don't think that I can get back this file :confused:
I now have to find another solution for my problem.

Thank you very much for your help ! :)