Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ayuda con Office - Help with Office -
Message
De
20/11/2000 12:03:02
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Ayuda con Office - Help with Office -
Divers
Thread ID:
00443687
Message ID:
00443687
Vues:
36
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform