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