Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting to a Word Textbox
Message
 
 
To
07/05/2001 16:07:36
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00504393
Message ID:
00504476
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform