Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ayuda con Office - Help with Office -
Message
From
20/11/2000 12:03:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Ayuda con Office - Help with Office -
Miscellaneous
Thread ID:
00443687
Message ID:
00443687
Views:
35
Sorry. English not is my first language.

As make I to call a macro recorded in a document of Word from VFP?.

The idea is to pull up Word using automation from VFP. At once, open a document specifies and to call to the macro that this recorded in the one.

oword = newobject("word.document")
odoc = oword.application
odoc.documents.open("c:\mis documentos\acuerdo.doc")
*// Here, call macro
odoc.visible = .t.

I have attempted the following one:

odoc.activedocument.NombreMacro(parametro1, parametro2), but it doesn't work.

Notice: The macro should not be called in the method Open of the document, because some parameters should be passed.

¿Como hago para llamar una macro grabada en un documento de Word desde VFP?.

La idea es arrancar Word utilizado automatización desde VFP. Enseguida abrir un documento especifico y llamar a la macro que esta grabada en el.

oword = newobject("word.document")
odoc = oword.application
odoc.documents.open("c:\mis documentos\acuerdo.doc")
*// Aqui se debe llamar la macro y pasarle unos parametros.
odoc.visible = .t.

He intentado los siguiente:
odoc.activedocument.NombreMacro(parametro1, parametro2), pero no funciona.

Nota: No se debe llamar la macro en el metodo Open del documento, pues se le deben pasar unos parametros.

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform