Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting to a Word Textbox
Message
 
 
À
07/05/2001 16:07:36
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00504393
Message ID:
00504476
Vues:
15
This is the only way I could find to set the name of a textbox object:

Launch Word and open your document. In VFP, run this code:

oWord = getobject(,'word.application')
oWord.ActiveDocument.Shapes(1).Select()
&& switch back to Word to see what shape is selected.
oWord.ActiveDocument.Shapes(1).Name = "GiveItAppropriateName"
? oWord.ActiveDocument.Shapes(1).Name && verify the name
oWord = .null.

Switch back to Word and save your document. This will save the names of your shapes as you defined them. I can find nowhere in Word or in VBAWRD9.CHM where you can do this.

Since this is a template for me, I never overwrite my master document, so now I know all my shape object names.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform